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.001198/0.001198, 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.001154/0.001154, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.9329/0.9329, allocations: 173.4 MB / 200.4 MB, free: 9.438 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 1.352e-06/1.352e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.396e-05/1.531e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002794/0.002809, allocations: 2.714 MB / 321.2 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009359/0.003745, allocations: 0.7089 MB / 321.9 MB, free: 2.914 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.003871, allocations: 4 kB / 321.9 MB, free: 2.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.004009, allocations: 51.44 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.004145, allocations: 111 kB / 322 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.004386, allocations: 99.75 kB / 322.1 MB, free: 2.652 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003069/0.004693, allocations: 426.1 kB / 322.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.004876, allocations: 79.69 kB / 322.6 MB, free: 2.152 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.005079, allocations: 239.4 kB / 322.8 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.005242, allocations: 119.7 kB / 323 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.77e-05/0.00529, allocations: 36 kB / 323 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.602e-05/0.005326, allocations: 40 kB / 323 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.935e-05/0.005375, allocations: 79.73 kB / 323.1 MB, free: 1.648 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.53e-05/0.005471, allocations: 119.7 kB / 323.2 MB, free: 1.531 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003273/0.005798, allocations: 446.6 kB / 323.7 MB, free: 1.094 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.0058, allocations: 0 / 323.7 MB, free: 1.094 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.005801, allocations: 0 / 323.7 MB, free: 1.094 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.005808, allocations: 4 kB / 323.7 MB, free: 1.09 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.0007419/0.00655, allocations: 0.5451 MB / 324.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.006598, allocations: 12.92 kB / 324.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.417e-05/0.006652, allocations: 58.73 kB / 324.3 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.602e-05/0.006708, allocations: 40.7 kB / 324.3 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.007009, allocations: 241 kB / 324.6 MB, free: 140 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.007029, allocations: 20.88 kB / 324.6 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/0.007065, allocations: 24.38 kB / 324.6 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004048/0.007469, allocations: 335.5 kB / 324.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.007479, allocations: 192 / 324.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.007505, allocations: 16.12 kB / 325 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.007511, allocations: 4 kB / 325 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.007792, allocations: 205.8 kB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.009125, allocations: 1.036 MB / 326.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004792/0.009604, allocations: 194.6 kB / 326.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.009846, allocations: 132.8 kB / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.00987, allocations: 0 / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002699/0.01014, allocations: 221.4 kB / 326.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.214e-06/0.01014, allocations: 0 / 326.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001029/0.01117, allocations: 453.8 kB / 327.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/0.01124, allocations: 132.5 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.01143, allocations: 241.8 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.01145, allocations: 29.7 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.156e-05/0.01154, allocations: 172.7 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.686e-05/0.01158, allocations: 67.39 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.41e-05/0.01165, allocations: 45.7 kB / 327.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.01176, allocations: 338.8 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.01187, allocations: 76 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.01202, allocations: 184.4 kB / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.01223, allocations: 168 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.01224, allocations: 0 / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005296/0.01277, allocations: 294.2 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.01278, allocations: 11.94 kB / 328.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.01279, allocations: 0 / 328.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000252/0.01304, allocations: 84.81 kB / 329 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.234e-05/0.01313, allocations: 31.91 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.0148, allocations: 2.019 MB / 331 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.01491, allocations: 35.84 kB / 331.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.01492, allocations: 4 kB / 331.1 MB, free: 9.242 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.000132/0.01505, allocations: 145.8 kB / 331.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.01508, allocations: 23.97 kB / 331.2 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.724e-05/0.01512, allocations: 46.27 kB / 331.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.01512, allocations: 3.938 kB / 331.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.01512, allocations: 4 kB / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.01513, allocations: 0 / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008914/0.01602, allocations: 0.6969 MB / 332 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.01603, allocations: 4 kB / 332 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.01613, allocations: 19.92 kB / 332 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000266/0.0164, allocations: 88.8 kB / 332.1 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.01642, allocations: 8.031 kB / 332.1 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002059/0.01848, allocations: 2.02 MB / 334.1 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01848, allocations: 0 / 334.1 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004571/0.01894, allocations: 457.6 kB / 334.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.01901, allocations: 47.8 kB / 334.6 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.231e-05/0.01903, allocations: 7.938 kB / 334.6 MB, free: 5.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.01913, allocations: 19.98 kB / 334.6 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.516e-05/0.01923, allocations: 31.94 kB / 334.7 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.01924, allocations: 8 kB / 334.7 MB, free: 5.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000117/0.01936, allocations: 173.2 kB / 334.8 MB, free: 5.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01936, allocations: 0 / 334.8 MB, free: 5.262 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003567/0.01971, allocations: 96.05 kB / 334.9 MB, free: 5.168 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.0007011/0.02042, allocations: 0.9899 MB / 335.9 MB, free: 4.148 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004803/0.0209, allocations: 342.4 kB / 336.3 MB, free: 3.801 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.0209, allocations: 4 kB / 336.3 MB, free: 3.797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.02115, allocations: 266.6 kB / 336.5 MB, free: 3.523 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.0215, allocations: 52.47 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.002727/0.02422, allocations: 2.732 MB / 339.3 MB, free: 0.625 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.02434, allocations: 158.7 kB / 339.5 MB, free: 460 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.653e-05/0.02441, allocations: 22.3 kB / 339.5 MB, free: 440 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/0.02478, allocations: 84.41 kB / 339.6 MB, free: 352 kB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.02478, allocations: 0 / 339.6 MB, free: 352 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02683/0.05161, allocations: 8.253 MB / 347.8 MB, free: 8.285 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/7.834, allocations: 11.84 kB / 347.8 MB, free: 8.273 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039604 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.csv","/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] "Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,idealTriac.capacitor.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off Variables in the result:time,idealTriac.capacitor.v [Calling sys.exit(0), Time elapsed: 9.706466119736433]