Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008288/0.0008288, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008032/0.0008032, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8616/0.8616, allocations: 177.1 MB / 204.3 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.273e-05/1.418e-05, allocations: 8.891 kB / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002468/0.002482, allocations: 2.742 MB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008351/0.003317, allocations: 0.7789 MB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.003421, allocations: 7.938 kB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.003545, allocations: 47.5 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.003668, allocations: 107 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.003926, allocations: 119.7 kB / 328.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002657/0.004191, allocations: 426 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.004341, allocations: 83.67 kB / 328.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.004572, allocations: 243.4 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.0047, allocations: 115.7 kB / 329.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.004734, allocations: 36 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.754e-05/0.004792, allocations: 43.98 kB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.242e-05/0.004834, allocations: 75.69 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.601e-05/0.00492, allocations: 123.7 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.005232, allocations: 462.5 kB / 330 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.005234, allocations: 4 kB / 330 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.005235, allocations: 0 / 330 MB, free: 10.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.00524, allocations: 4 kB / 330 MB, free: 10.5 MB / 298.7 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.0006429/0.005882, allocations: 0.544 MB / 330.5 MB, free: 9.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.005918, allocations: 12.03 kB / 330.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.745e-05/0.005965, allocations: 66.72 kB / 330.6 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.006072, allocations: 48.69 kB / 330.6 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.006329, allocations: 226.1 kB / 330.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.006344, allocations: 24.86 kB / 330.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.00638, allocations: 24.38 kB / 330.9 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005663/0.006946, allocations: 335.5 kB / 331.2 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.006955, allocations: 192 / 331.2 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.006976, allocations: 20.12 kB / 331.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.006982, allocations: 4 kB / 331.3 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002479/0.00723, allocations: 205.8 kB / 331.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.008233, allocations: 1.04 MB / 332.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.00855, allocations: 190.6 kB / 332.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.008734, allocations: 124.8 kB / 332.8 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.00875, allocations: 0 / 332.8 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.00895, allocations: 222.1 kB / 333 MB, free: 7.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.222e-06/0.008952, allocations: 0 / 333 MB, free: 7.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007796/0.009731, allocations: 460.8 kB / 333.5 MB, free: 6.773 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.009788, allocations: 132.5 kB / 333.6 MB, free: 6.613 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.009952, allocations: 249.9 kB / 333.8 MB, free: 6.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.009968, allocations: 29.7 kB / 333.9 MB, free: 6.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.021e-05/0.01006, allocations: 176.6 kB / 334 MB, free: 6.148 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.852e-05/0.01011, allocations: 75.38 kB / 334.1 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.927e-05/0.01017, allocations: 49.7 kB / 334.2 MB, free: 6.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.01025, allocations: 330.8 kB / 334.5 MB, free: 5.688 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.95e-05/0.01035, allocations: 71.97 kB / 334.6 MB, free: 5.617 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.01049, allocations: 176.5 kB / 334.7 MB, free: 5.414 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.01068, allocations: 172 kB / 334.9 MB, free: 5.234 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01069, allocations: 0 / 334.9 MB, free: 5.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003116/0.011, allocations: 290.1 kB / 335.2 MB, free: 4.941 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.01101, allocations: 7.938 kB / 335.2 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.01101, allocations: 4 kB / 335.2 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002251/0.01124, allocations: 92.8 kB / 335.3 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.798e-05/0.01132, allocations: 24.08 kB / 335.3 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.01274, allocations: 2.016 MB / 337.3 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.01284, allocations: 35.92 kB / 337.4 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.01285, allocations: 8 kB / 337.4 MB, free: 2.637 MB / 298.7 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.0001049/0.01296, allocations: 153.8 kB / 337.5 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.01298, allocations: 23.86 kB / 337.5 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.155e-05/0.01302, allocations: 30.27 kB / 337.6 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.01302, allocations: 7.938 kB / 337.6 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-06/0.01302, allocations: 0 / 337.6 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.01302, allocations: 0 / 337.6 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008575/0.01388, allocations: 0.7017 MB / 338.3 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.01388, allocations: 7.922 kB / 338.3 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.121e-05/0.01394, allocations: 19.94 kB / 338.3 MB, free: 1.633 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001644/0.01411, allocations: 84.8 kB / 338.4 MB, free: 1.547 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.01412, allocations: 8.109 kB / 338.4 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.01546, allocations: 2.024 MB / 340.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01546, allocations: 96 / 340.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004008/0.01586, allocations: 451.4 kB / 340.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.398e-05/0.01592, allocations: 51.75 kB / 340.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.01594, allocations: 7.938 kB / 340.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.921e-05/0.01604, allocations: 28.05 kB / 340.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.889e-05/0.01611, allocations: 31.94 kB / 341 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.01612, allocations: 11.98 kB / 341 MB, free: 14.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001074/0.01623, allocations: 177.2 kB / 341.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01623, allocations: 0 / 341.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002784/0.01651, allocations: 91.89 kB / 341.3 MB, free: 14.55 MB / 314.7 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.0005797/0.01709, allocations: 0.9834 MB / 342.2 MB, free: 13.53 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004203/0.01751, allocations: 350.4 kB / 342.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.01751, allocations: 4 kB / 342.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.01772, allocations: 261.2 kB / 342.8 MB, free: 12.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.01799, allocations: 52.72 kB / 342.9 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.02049, allocations: 2.739 MB / 345.6 MB, free: 10 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.442e-05/0.02059, allocations: 159.8 kB / 345.8 MB, free: 9.828 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.19e-05/0.02065, allocations: 22.3 kB / 345.8 MB, free: 9.805 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.64e-05/0.02073, allocations: 84.47 kB / 345.9 MB, free: 9.723 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.02073, allocations: 0 / 345.9 MB, free: 9.723 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.04138, allocations: 8.293 MB / 354.2 MB, free: 1.621 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/7.751, allocations: 0.5625 kB / 354.2 MB, free: 1.621 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 9.396735141053796]