Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 191.7 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 47.94 kB / 371.2 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2458, allocations: 52.17 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004237/0.25, allocations: 2.959 MB / 426.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.2512, allocations: 0.7362 MB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.2514, allocations: 4 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001633/0.2515, allocations: 51.44 kB / 427.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000205/0.2517, allocations: 103.1 kB / 427.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002623/0.252, allocations: 99.83 kB / 427.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.2524, allocations: 406.3 kB / 427.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.2526, allocations: 92.81 kB / 427.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.2528, allocations: 155.5 kB / 428 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.253, allocations: 163.3 kB / 428.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.404e-05/0.2531, allocations: 39.94 kB / 428.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.488e-05/0.2531, allocations: 40 kB / 428.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.209e-05/0.2532, allocations: 75.77 kB / 428.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.2534, allocations: 179.2 kB / 428.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004437/0.2538, allocations: 426.1 kB / 428.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.2538, allocations: 7.922 kB / 428.9 MB, free: 9.102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2538, allocations: 3.938 kB / 428.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2538, allocations: 0 / 428.9 MB, free: 9.098 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001001/0.2548, allocations: 0.5567 MB / 429.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.2549, allocations: 8.031 kB / 429.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.681e-05/0.2549, allocations: 8.688 kB / 429.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.844e-05/0.255, allocations: 62.72 kB / 429.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.631e-05/0.255, allocations: 32.75 kB / 429.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.2554, allocations: 229.9 kB / 429.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.2554, allocations: 20.88 kB / 429.8 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.784e-05/0.2555, allocations: 24.38 kB / 429.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/0.256, allocations: 291.5 kB / 430.1 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.256, allocations: 3.984 kB / 430.1 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.256, allocations: 15.94 kB / 430.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.256, allocations: 4 kB / 430.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000401/0.2564, allocations: 209.8 kB / 430.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.2581, allocations: 1.102 MB / 431.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004897/0.2586, allocations: 198.6 kB / 431.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002969/0.2589, allocations: 136.7 kB / 431.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.259, allocations: 4 kB / 431.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.2593, allocations: 168.7 kB / 432 MB, free: 5.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.422e-06/0.2593, allocations: 0 / 432 MB, free: 5.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.00136/0.2606, allocations: 444 kB / 432.4 MB, free: 5.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/0.2607, allocations: 132.5 kB / 432.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002505/0.2609, allocations: 245 kB / 432.8 MB, free: 5.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.261, allocations: 29.7 kB / 432.8 MB, free: 4.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.2611, allocations: 176.6 kB / 433 MB, free: 4.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.921e-05/0.2612, allocations: 75.36 kB / 433 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.616e-05/0.2613, allocations: 49.64 kB / 433.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2614, allocations: 334.8 kB / 433.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.2615, allocations: 71.97 kB / 433.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.2617, allocations: 125.1 kB / 433.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/0.262, allocations: 167.3 kB / 433.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.262, allocations: 0 / 433.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005012/0.2625, allocations: 294.1 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.2625, allocations: 4 kB / 434.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2626, allocations: 4 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003428/0.2629, allocations: 88.78 kB / 434.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.263, allocations: 27.98 kB / 434.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002352/0.2654, allocations: 2.038 MB / 436.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.2656, allocations: 31.86 kB / 436.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.2656, allocations: 12 kB / 436.3 MB, free: 1.328 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.2658, allocations: 147.9 kB / 436.4 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.373e-05/0.2658, allocations: 31.86 kB / 436.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.736e-05/0.2659, allocations: 26.28 kB / 436.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2659, allocations: 7.984 kB / 436.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.2659, allocations: 0 / 436.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2659, allocations: 4 kB / 436.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009716/0.2668, allocations: 0.7289 MB / 437.2 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2668, allocations: 3.938 kB / 437.2 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.267, allocations: 28.02 kB / 437.2 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002539/0.2672, allocations: 88.8 kB / 437.3 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.2672, allocations: 4 kB / 437.3 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.2695, allocations: 2.048 MB / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2695, allocations: 0 / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006718/0.2701, allocations: 456.7 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.586e-05/0.2702, allocations: 47.77 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.188e-05/0.2703, allocations: 7.984 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.2705, allocations: 27.98 kB / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.932e-05/0.2706, allocations: 31.94 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.2706, allocations: 8 kB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001716/0.2708, allocations: 172.5 kB / 440.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2708, allocations: 0 / 440.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004553/0.2712, allocations: 91.89 kB / 440.2 MB, free: 13.19 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/0.2722, allocations: 0.9873 MB / 441.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006767/0.2729, allocations: 353.5 kB / 441.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2729, allocations: 8.188 kB / 441.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004001/0.2733, allocations: 254.5 kB / 441.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.2737, allocations: 59.78 kB / 441.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003808/0.2775, allocations: 2.756 MB / 444.6 MB, free: 8.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/0.2779, allocations: 0.7597 MB / 445.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.278, allocations: 30.27 kB / 445.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.2781, allocations: 83.41 kB / 445.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2781, allocations: 0 / 445.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03416/0.3123, allocations: 7.839 MB / 453.3 MB, free: 100 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.44, allocations: 7.375 kB / 453.3 MB, free: 96 kB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.97582244197838]