Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.001542/0.001542, allocations: 123.4 kB / 17.79 MB, free: 5.246 MB / 14.72 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.001377/0.001377, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 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 1.628/1.628, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 51.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1188, allocations: 53.33 MB / 426.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005079/0.1239, allocations: 3.534 MB / 429.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1256, allocations: 0.8452 MB / 430.7 MB, free: 364 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.1258, allocations: 11.94 kB / 430.7 MB, free: 352 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002179/0.126, allocations: 67.3 kB / 430.8 MB, free: 284 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002643/0.1263, allocations: 134.8 kB / 430.9 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004347/0.1267, allocations: 143.7 kB / 431 MB, free: 4 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2333/0.3601, allocations: 0.4992 MB / 431.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003365/0.3604, allocations: 96.02 kB / 431.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005149/0.3609, allocations: 200.6 kB / 431.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003035/0.3612, allocations: 214 kB / 432 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.033e-05/0.3613, allocations: 39.06 kB / 432.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.3615, allocations: 43.89 kB / 432.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.3615, allocations: 87.53 kB / 432.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000211/0.3617, allocations: 225.1 kB / 432.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005662/0.3623, allocations: 0.494 MB / 432.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3623, allocations: 0.9688 kB / 432.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3623, allocations: 3.281 kB / 432.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.3623, allocations: 0 / 432.9 MB, free: 7.391 MB / 350.1 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.001095/0.3634, allocations: 0.7308 MB / 433.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.3635, allocations: 10.03 kB / 433.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.846e-05/0.3636, allocations: 72.89 kB / 433.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004322/0.364, allocations: 80.52 kB / 433.8 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005161/0.3645, allocations: 328.7 kB / 434.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/0.3645, allocations: 26.56 kB / 434.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.438e-05/0.3646, allocations: 30.97 kB / 434.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007117/0.3653, allocations: 360.5 kB / 434.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.3653, allocations: 0.75 kB / 434.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.803e-05/0.3654, allocations: 12.09 kB / 434.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.3654, allocations: 8.031 kB / 434.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005933/0.366, allocations: 273.8 kB / 434.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.3679, allocations: 1.412 MB / 436.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004526/0.3684, allocations: 202.1 kB / 436.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.3686, allocations: 103.3 kB / 436.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.3686, allocations: 3.188 kB / 436.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.3686, allocations: 43.81 kB / 436.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.323e-06/0.3686, allocations: 0 / 436.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001553/0.3702, allocations: 0.6946 MB / 437.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.685e-05/0.3702, allocations: 62.28 kB / 437.4 MB, free: 5.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.3706, allocations: 310.2 kB / 437.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.3706, allocations: 32.17 kB / 437.7 MB, free: 5.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.3707, allocations: 210 kB / 437.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.223e-05/0.3707, allocations: 85.17 kB / 438 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.841e-05/0.3708, allocations: 52.23 kB / 438 MB, free: 4.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.939e-05/0.3709, allocations: 337.4 kB / 438.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.3711, allocations: 83.3 kB / 438.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.3713, allocations: 128.6 kB / 438.6 MB, free: 4.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003731/0.3717, allocations: 206.5 kB / 438.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3717, allocations: 0 / 438.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007278/0.3724, allocations: 349.6 kB / 439.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3724, allocations: 4.719 kB / 439.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3724, allocations: 6.984 kB / 439.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004467/0.3729, allocations: 118.7 kB / 439.2 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.3731, allocations: 27.34 kB / 439.3 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.3764, allocations: 4.975 MB / 444.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002872/0.3767, allocations: 30.08 kB / 444.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.3767, allocations: 7.469 kB / 444.3 MB, free: 15.29 MB / 366.1 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.0002222/0.3769, allocations: 151.4 kB / 444.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.549e-05/0.377, allocations: 37.56 kB / 444.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.051e-05/0.3771, allocations: 39.53 kB / 444.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.3771, allocations: 2.875 kB / 444.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3771, allocations: 1.219 kB / 444.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3771, allocations: 4.719 kB / 444.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005642/0.3777, allocations: 382.5 kB / 444.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3777, allocations: 1.469 kB / 444.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.3778, allocations: 23.81 kB / 444.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003857/0.3782, allocations: 108.9 kB / 445 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3782, allocations: 5.859 kB / 445 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004579/0.3828, allocations: 4.971 MB / 450 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.3828, allocations: 0.6562 kB / 450 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000807/0.3836, allocations: 401.1 kB / 450.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.3838, allocations: 134.3 kB / 450.5 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.68e-05/0.3838, allocations: 6.156 kB / 450.5 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.384, allocations: 19.36 kB / 450.5 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.382e-05/0.3841, allocations: 28.05 kB / 450.6 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.3842, allocations: 13.28 kB / 450.6 MB, free: 9.543 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002967/0.3845, allocations: 221.6 kB / 450.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3845, allocations: 0 / 450.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007254/0.3852, allocations: 114.5 kB / 450.9 MB, free: 9.398 MB / 366.1 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.00105/0.3862, allocations: 0.9378 MB / 451.8 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.3873, allocations: 0.5667 MB / 452.4 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.3873, allocations: 1.062 kB / 452.4 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005793/0.3878, allocations: 476.6 kB / 452.9 MB, free: 7.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.3883, allocations: 65.08 kB / 452.9 MB, free: 7.785 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005551/0.3939, allocations: 3.144 MB / 456.1 MB, free: 5.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.3944, allocations: 0.795 MB / 456.9 MB, free: 5.074 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000178/0.3946, allocations: 27 kB / 456.9 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.3948, allocations: 109.6 kB / 457 MB, free: 4.984 MB / 366.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3948, allocations: 1.188 kB / 457 MB, free: 4.984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05529/0.4501, allocations: 8.787 MB / 465.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.15, allocations: 0.7812 kB / 465.8 MB, free: 2.445 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! Error: Could not read variable With_Ron_Goff_Vknee.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv. Warning: Get data of variable With_Ron_Goff_Vknee.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.964613542004372]