Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.0008665/0.0008665, 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.001099/0.001099, allocations: 149.4 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.9378/0.9378, allocations: 173.4 MB / 200.5 MB, free: 9.422 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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.202e-05/2.404e-05, allocations: 3.688 kB / 318.4 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003114/0.003138, allocations: 3.175 MB / 321.6 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008863/0.004024, allocations: 0.7284 MB / 322.4 MB, free: 2.402 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.004151, allocations: 7.938 kB / 322.4 MB, free: 2.395 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.004294, allocations: 71.28 kB / 322.4 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.004457, allocations: 146.6 kB / 322.6 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.004684, allocations: 111.8 kB / 322.7 MB, free: 2.07 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000344/0.005028, allocations: 0.517 MB / 323.2 MB, free: 1.551 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.0052, allocations: 91.67 kB / 323.3 MB, free: 1.457 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.005441, allocations: 291.3 kB / 323.6 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.005586, allocations: 151.5 kB / 323.7 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.671e-05/0.005633, allocations: 40 kB / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.85e-05/0.005672, allocations: 40 kB / 323.8 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.231e-05/0.005724, allocations: 99.58 kB / 323.9 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.345e-05/0.005817, allocations: 147.7 kB / 324 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003422/0.00616, allocations: 0.4984 MB / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.006162, allocations: 0 / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.006163, allocations: 0 / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.006169, allocations: 0 / 324.5 MB, free: 208 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.000694/0.006863, allocations: 0.6529 MB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.0069, allocations: 8.922 kB / 325.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.424e-05/0.006954, allocations: 74.72 kB / 325.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.188e-05/0.007006, allocations: 52.66 kB / 325.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.007291, allocations: 253.6 kB / 325.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.007307, allocations: 21.03 kB / 325.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.007336, allocations: 32.38 kB / 325.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.007759, allocations: 436.4 kB / 326.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.007769, allocations: 192 / 326.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.007793, allocations: 20.12 kB / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.007801, allocations: 8 kB / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000334/0.008135, allocations: 270.4 kB / 326.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.009307, allocations: 1.276 MB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002838/0.009591, allocations: 202.3 kB / 327.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.009716, allocations: 92.83 kB / 327.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.009733, allocations: 7.984 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.009757, allocations: 38.56 kB / 328 MB, free: 12.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.009758, allocations: 0 / 328 MB, free: 12.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008406/0.0106, allocations: 482.8 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.01063, allocations: 55.34 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.01085, allocations: 308.6 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.01087, allocations: 29.7 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.79e-05/0.01097, allocations: 216.4 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/0.01101, allocations: 79.22 kB / 329.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.079e-05/0.01107, allocations: 53.64 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.492e-05/0.01115, allocations: 342.8 kB / 329.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.01127, allocations: 83.95 kB / 329.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.01142, allocations: 132.2 kB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.01168, allocations: 188.2 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.01168, allocations: 0 / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004312/0.01211, allocations: 359.7 kB / 330.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.01212, allocations: 7.984 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.01213, allocations: 4 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002753/0.01241, allocations: 114.5 kB / 330.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.517e-05/0.0125, allocations: 27.92 kB / 330.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002442/0.01494, allocations: 4.645 MB / 335 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.01505, allocations: 31.86 kB / 335.1 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.01506, allocations: 8.188 kB / 335.1 MB, free: 5 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.01518, allocations: 145.8 kB / 335.2 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.01521, allocations: 35.75 kB / 335.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.322e-05/0.01525, allocations: 39.27 kB / 335.3 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.01525, allocations: 7.938 kB / 335.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.01525, allocations: 0 / 335.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.01525, allocations: 3.984 kB / 335.3 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004336/0.01569, allocations: 304.6 kB / 335.6 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.01569, allocations: 0 / 335.6 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.087e-05/0.01574, allocations: 27.97 kB / 335.6 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.01593, allocations: 122.5 kB / 335.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.01594, allocations: 0 / 335.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.01827, allocations: 4.637 MB / 340.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.01827, allocations: 0 / 340.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000367/0.01863, allocations: 397.6 kB / 340.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.462e-05/0.01871, allocations: 51.73 kB / 340.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.01873, allocations: 4.125 kB / 340.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.01884, allocations: 23.98 kB / 340.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.0189, allocations: 27.95 kB / 340.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.01891, allocations: 4 kB / 340.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001425/0.01906, allocations: 219.1 kB / 341.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01906, allocations: 0 / 341.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004551/0.01951, allocations: 119.7 kB / 341.2 MB, free: 14.44 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005524/0.02006, allocations: 0.9397 MB / 342.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005525/0.02062, allocations: 0.5624 MB / 342.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.02062, allocations: 128 / 342.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.0209, allocations: 479.8 kB / 343.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.02121, allocations: 64.17 kB / 343.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.0242, allocations: 3.116 MB / 346.4 MB, free: 9.047 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.02432, allocations: 190.8 kB / 346.5 MB, free: 8.832 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.707e-05/0.0244, allocations: 26.97 kB / 346.6 MB, free: 8.805 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.0245, allocations: 112.5 kB / 346.7 MB, free: 8.695 MB / 314.7 MB Notification: Performance of SimCode: time 6.62e-07/0.0245, allocations: 0 / 346.7 MB, free: 8.695 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0344/0.0589, allocations: 9.337 MB / 356 MB, free: 15.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.928/7.987, allocations: 19.84 kB / 356 MB, free: 15.55 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199521 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable With_Ron_Goff.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! Error: Could not read variable With_Ron_Goff_Vknee.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff_Vknee.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.90589645318687]