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.0008768/0.0008768, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009009/0.0009009, allocations: 149.4 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.8813/0.8813, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.992e-05/2.196e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004001/0.004023, allocations: 2.714 MB / 321.1 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.005457, allocations: 0.705 MB / 321.9 MB, free: 2.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.005677, allocations: 4 kB / 321.9 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.005857, allocations: 55.44 kB / 321.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.006112, allocations: 111 kB / 322 MB, free: 2.742 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003851/0.006497, allocations: 107.8 kB / 322.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004668/0.006964, allocations: 418.1 kB / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/0.007194, allocations: 83.67 kB / 322.6 MB, free: 2.141 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003753/0.00757, allocations: 231.5 kB / 322.8 MB, free: 1.914 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.007789, allocations: 127.6 kB / 323 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003279/0.008117, allocations: 36 kB / 323 MB, free: 1.754 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.619e-05/0.008173, allocations: 36 kB / 323 MB, free: 1.719 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.439e-05/0.008238, allocations: 79.73 kB / 323.1 MB, free: 1.641 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.00838, allocations: 119.7 kB / 323.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004711/0.008851, allocations: 450.6 kB / 323.7 MB, free: 1.082 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.008856, allocations: 0 / 323.7 MB, free: 1.082 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.008858, allocations: 0 / 323.7 MB, free: 1.082 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.00887, allocations: 0 / 323.7 MB, free: 1.082 MB / 282.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.001011/0.009881, allocations: 0.5522 MB / 324.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.009924, allocations: 8.922 kB / 324.2 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.331e-05/0.009977, allocations: 58.73 kB / 324.3 MB, free: 440 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.01005, allocations: 44.7 kB / 324.3 MB, free: 396 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.0104, allocations: 241 kB / 324.6 MB, free: 128 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.01042, allocations: 16.88 kB / 324.6 MB, free: 112 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.158e-05/0.01045, allocations: 24.38 kB / 324.6 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.01083, allocations: 339.7 kB / 324.9 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.01084, allocations: 8.109 kB / 324.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.01086, allocations: 12.12 kB / 325 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.01087, allocations: 8 kB / 325 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/0.01113, allocations: 201.9 kB / 325.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.01228, allocations: 1.028 MB / 326.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.01263, allocations: 198.6 kB / 326.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.01283, allocations: 128.8 kB / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.01284, allocations: 4 kB / 326.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/0.01307, allocations: 213.2 kB / 326.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.503e-06/0.01307, allocations: 0 / 326.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008272/0.0139, allocations: 453.8 kB / 327.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.232e-05/0.01396, allocations: 132.5 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.01413, allocations: 241.8 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.01415, allocations: 29.7 kB / 327.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.01425, allocations: 168.7 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.895e-05/0.0143, allocations: 71.39 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.8e-05/0.01437, allocations: 49.7 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.01448, allocations: 330.8 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.01458, allocations: 79.91 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.01473, allocations: 184.5 kB / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.01494, allocations: 168 kB / 328.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.01494, allocations: 0 / 328.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003678/0.01531, allocations: 290.3 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.01533, allocations: 11.88 kB / 328.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.01535, allocations: 4 kB / 328.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000322/0.01567, allocations: 96.78 kB / 329 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.603e-05/0.01576, allocations: 27.92 kB / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/0.01794, allocations: 2.008 MB / 331 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.01807, allocations: 31.81 kB / 331.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.01809, allocations: 12 kB / 331.1 MB, free: 9.234 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.0001285/0.01822, allocations: 145.8 kB / 331.2 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/0.01824, allocations: 23.86 kB / 331.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.573e-05/0.01828, allocations: 38.44 kB / 331.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.01828, allocations: 11.88 kB / 331.3 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.01829, allocations: 0 / 331.3 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.01829, allocations: 0 / 331.3 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006835/0.01897, allocations: 0.701 MB / 332 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.01898, allocations: 3.984 kB / 332 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.684e-05/0.01905, allocations: 19.94 kB / 332 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002193/0.01927, allocations: 84.8 kB / 332.1 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.0193, allocations: 12.03 kB / 332.1 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.02097, allocations: 2.024 MB / 334.1 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.02097, allocations: 0 / 334.1 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004521/0.02142, allocations: 453.6 kB / 334.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.155e-05/0.02149, allocations: 43.8 kB / 334.6 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.02152, allocations: 11.94 kB / 334.6 MB, free: 5.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.886e-05/0.02162, allocations: 11.98 kB / 334.6 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.836e-05/0.02171, allocations: 35.94 kB / 334.7 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.02172, allocations: 7.984 kB / 334.7 MB, free: 5.426 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001164/0.02183, allocations: 181.2 kB / 334.8 MB, free: 5.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02183, allocations: 0 / 334.8 MB, free: 5.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.02217, allocations: 92.05 kB / 334.9 MB, free: 5.16 MB / 298.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.0006653/0.02283, allocations: 0.9862 MB / 335.9 MB, free: 4.145 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000496/0.02333, allocations: 346.4 kB / 336.3 MB, free: 3.793 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.02333, allocations: 256 / 336.3 MB, free: 3.793 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002445/0.02357, allocations: 266.3 kB / 336.5 MB, free: 3.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.02389, allocations: 51.44 kB / 336.6 MB, free: 3.469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.02677, allocations: 2.735 MB / 339.3 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.0269, allocations: 154.7 kB / 339.5 MB, free: 460 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.324e-05/0.02698, allocations: 26.28 kB / 339.5 MB, free: 436 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.505e-05/0.02708, allocations: 88.41 kB / 339.6 MB, free: 344 kB / 298.7 MB Notification: Performance of SimCode: time 1.453e-06/0.02708, allocations: 0 / 339.6 MB, free: 344 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02518/0.05225, allocations: 8.248 MB / 347.8 MB, free: 8.281 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.908/7.961, allocations: 11.8 kB / 347.8 MB, free: 8.27 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/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: 9.693830561824143]