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.001168/0.001168, allocations: 79.7 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.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.0008813/0.0008813, allocations: 170 kB / 23.94 MB, free: 0.6172 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.9114/0.9114, allocations: 177.1 MB / 204.3 MB, free: 5.738 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.473e-06/1.473e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.425e-05/2.572e-05, allocations: 14.16 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002918/0.002944, allocations: 2.742 MB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009886/0.003932, allocations: 0.7789 MB / 328.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.004046, allocations: 7.938 kB / 328.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.004169, allocations: 47.5 kB / 328.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.004304, allocations: 107 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.004612, allocations: 115.7 kB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.004914, allocations: 434 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.005082, allocations: 83.67 kB / 328.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.005368, allocations: 239.4 kB / 329.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.005559, allocations: 115.7 kB / 329.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.005599, allocations: 36 kB / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.479e-05/0.005664, allocations: 43.98 kB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.00571, allocations: 83.67 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.606e-05/0.005796, allocations: 115.8 kB / 329.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.006126, allocations: 462.5 kB / 330 MB, free: 10.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.006128, allocations: 4 kB / 330 MB, free: 10.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.006129, allocations: 4 kB / 330 MB, free: 10.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.006134, allocations: 0 / 330 MB, free: 10.52 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.0006636/0.006798, allocations: 0.5489 MB / 330.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.006838, allocations: 8.031 kB / 330.5 MB, free: 9.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.124e-05/0.006889, allocations: 66.73 kB / 330.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.006995, allocations: 48.69 kB / 330.6 MB, free: 9.809 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.007258, allocations: 226.1 kB / 330.8 MB, free: 9.559 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.007274, allocations: 20.88 kB / 330.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.007307, allocations: 24.38 kB / 330.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003325/0.00764, allocations: 339.5 kB / 331.2 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.007649, allocations: 192 / 331.2 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.007669, allocations: 16.12 kB / 331.2 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.007676, allocations: 12 kB / 331.3 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002482/0.007924, allocations: 201.8 kB / 331.4 MB, free: 8.934 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.008936, allocations: 1.032 MB / 332.5 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.009265, allocations: 202.6 kB / 332.7 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.009458, allocations: 120.8 kB / 332.8 MB, free: 7.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.009474, allocations: 0 / 332.8 MB, free: 7.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.009699, allocations: 221.1 kB / 333 MB, free: 7.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.232e-06/0.0097, allocations: 0 / 333 MB, free: 7.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.00082/0.01052, allocations: 461.8 kB / 333.5 MB, free: 6.789 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.01058, allocations: 136.5 kB / 333.6 MB, free: 6.625 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.01075, allocations: 241.9 kB / 333.8 MB, free: 6.379 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.01077, allocations: 37.73 kB / 333.9 MB, free: 6.336 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.069e-05/0.01085, allocations: 168.6 kB / 334 MB, free: 6.168 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.619e-05/0.0109, allocations: 79.38 kB / 334.1 MB, free: 6.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.71e-05/0.01095, allocations: 45.7 kB / 334.2 MB, free: 6.039 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.613e-05/0.01104, allocations: 330.8 kB / 334.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.655e-05/0.01114, allocations: 75.97 kB / 334.6 MB, free: 5.633 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.01127, allocations: 176.5 kB / 334.7 MB, free: 5.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001897/0.01146, allocations: 172 kB / 334.9 MB, free: 5.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01146, allocations: 0 / 334.9 MB, free: 5.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003301/0.01179, allocations: 286.1 kB / 335.2 MB, free: 4.961 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.01181, allocations: 11.94 kB / 335.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01181, allocations: 0 / 335.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.01205, allocations: 92.8 kB / 335.3 MB, free: 4.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.27e-05/0.01212, allocations: 23.98 kB / 335.3 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/0.01355, allocations: 2.016 MB / 337.3 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.535e-05/0.01365, allocations: 31.86 kB / 337.3 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.01366, allocations: 16.06 kB / 337.4 MB, free: 2.652 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.000109/0.01377, allocations: 145.8 kB / 337.5 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.01379, allocations: 23.86 kB / 337.5 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.01382, allocations: 34.27 kB / 337.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.01383, allocations: 3.938 kB / 337.6 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.01383, allocations: 3.984 kB / 337.6 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.01383, allocations: 4 kB / 337.6 MB, free: 2.434 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006339/0.01447, allocations: 0.7009 MB / 338.3 MB, free: 1.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.01447, allocations: 4.031 kB / 338.3 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.277e-05/0.01455, allocations: 23.88 kB / 338.3 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001755/0.01473, allocations: 88.91 kB / 338.4 MB, free: 1.562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.01475, allocations: 7.938 kB / 338.4 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/0.01611, allocations: 2.02 MB / 340.4 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01612, allocations: 96 / 340.4 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004/0.01652, allocations: 452 kB / 340.9 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.255e-05/0.01658, allocations: 51.75 kB / 340.9 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.0166, allocations: 7.938 kB / 340.9 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.0167, allocations: 20.11 kB / 340.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.828e-05/0.01677, allocations: 39.88 kB / 341 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.01679, allocations: 11.98 kB / 341 MB, free: 14.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001026/0.01689, allocations: 177.2 kB / 341.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01689, allocations: 0 / 341.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002629/0.01715, allocations: 87.89 kB / 341.2 MB, free: 14.57 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.000584/0.01773, allocations: 0.9865 MB / 342.2 MB, free: 13.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000412/0.01815, allocations: 350.4 kB / 342.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01815, allocations: 0 / 342.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.01836, allocations: 258.4 kB / 342.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.01862, allocations: 60.7 kB / 342.9 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.02083, allocations: 2.735 MB / 345.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.926e-05/0.02093, allocations: 163.8 kB / 345.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.195e-05/0.02099, allocations: 18.3 kB / 345.8 MB, free: 9.824 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.816e-05/0.02107, allocations: 84.47 kB / 345.9 MB, free: 9.742 MB / 314.7 MB Notification: Performance of SimCode: time 3.7e-07/0.02107, allocations: 0 / 345.9 MB, free: 9.742 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.04037, allocations: 8.293 MB / 354.2 MB, free: 1.641 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/7.946, allocations: 4.062 kB / 354.2 MB, free: 1.637 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 & python3 -m fmpy simulate --output-file Modelica_4.1.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_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.csv","/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] "Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_4.1.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.770965673960745]