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.001922/0.001922, allocations: 124.5 kB / 17.79 MB, free: 5.266 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.002264/0.002264, allocations: 207.2 kB / 20.75 MB, free: 2.316 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.505/1.505, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001533/0.001533, allocations: 55.91 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.1006, allocations: 53.32 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005435/0.1061, allocations: 3.528 MB / 429.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.1079, allocations: 0.853 MB / 430.7 MB, free: 384 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003599/0.1083, allocations: 11.94 kB / 430.7 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000289/0.1086, allocations: 67.3 kB / 430.8 MB, free: 304 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004651/0.109, allocations: 138.8 kB / 430.9 MB, free: 164 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004777/0.1095, allocations: 135.8 kB / 431.1 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2198/0.3293, allocations: 0.5019 MB / 431.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.3296, allocations: 92.8 kB / 431.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003994/0.33, allocations: 200.8 kB / 431.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.3302, allocations: 212.8 kB / 432 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.749e-05/0.3303, allocations: 43.47 kB / 432.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.3304, allocations: 42.06 kB / 432.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.74e-05/0.3304, allocations: 92.48 kB / 432.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.3306, allocations: 220.4 kB / 432.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000506/0.3311, allocations: 0.4964 MB / 432.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3311, allocations: 0.5312 kB / 432.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3311, allocations: 0.7812 kB / 432.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.3311, allocations: 3.656 kB / 432.9 MB, free: 7.387 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.001033/0.3322, allocations: 0.7371 MB / 433.7 MB, free: 6.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3322, allocations: 15.44 kB / 433.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.567e-05/0.3323, allocations: 67.23 kB / 433.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003212/0.3326, allocations: 79.61 kB / 433.8 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004211/0.333, allocations: 322.8 kB / 434.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.333, allocations: 24.28 kB / 434.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/0.3331, allocations: 30.88 kB / 434.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005931/0.3337, allocations: 363.9 kB / 434.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3337, allocations: 4.5 kB / 434.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.625e-05/0.3337, allocations: 13.69 kB / 434.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.3338, allocations: 7.844 kB / 434.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006253/0.3344, allocations: 268.6 kB / 434.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.3364, allocations: 1.406 MB / 436.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004422/0.3369, allocations: 209.4 kB / 436.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.3371, allocations: 95.69 kB / 436.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.3371, allocations: 2.188 kB / 436.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.3371, allocations: 43.09 kB / 436.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.3371, allocations: 0 / 436.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001611/0.3388, allocations: 0.7012 MB / 437.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/0.3388, allocations: 53.56 kB / 437.3 MB, free: 5.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.3391, allocations: 313.4 kB / 437.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.3392, allocations: 26.83 kB / 437.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.3393, allocations: 212.2 kB / 437.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.283e-05/0.3393, allocations: 87.45 kB / 438 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.3394, allocations: 53.97 kB / 438 MB, free: 4.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.137e-05/0.3395, allocations: 341.4 kB / 438.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.3396, allocations: 77.67 kB / 438.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.3398, allocations: 131.6 kB / 438.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00036/0.3402, allocations: 197.8 kB / 438.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3402, allocations: 3.219 kB / 438.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007103/0.3409, allocations: 357 kB / 439.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3409, allocations: 6.141 kB / 439.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3409, allocations: 1.219 kB / 439.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004421/0.3414, allocations: 116.5 kB / 439.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.3416, allocations: 33.22 kB / 439.3 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003257/0.3448, allocations: 4.974 MB / 444.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.3451, allocations: 31.16 kB / 444.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.3451, allocations: 8.266 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.0002063/0.3453, allocations: 144.3 kB / 444.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.528e-05/0.3454, allocations: 40.66 kB / 444.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.707e-05/0.3455, allocations: 35.28 kB / 444.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3455, allocations: 6.312 kB / 444.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3455, allocations: 1.031 kB / 444.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3455, allocations: 1.828 kB / 444.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005299/0.346, allocations: 384 kB / 444.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.346, allocations: 2.375 kB / 444.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.3461, allocations: 21.55 kB / 444.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000366/0.3465, allocations: 116.3 kB / 445 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.3465, allocations: 6.859 kB / 445 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004337/0.3508, allocations: 4.972 MB / 450 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3508, allocations: 0.5 kB / 450 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006875/0.3515, allocations: 397.3 kB / 450.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.3517, allocations: 133.3 kB / 450.5 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.3517, allocations: 6.969 kB / 450.5 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.352, allocations: 20.14 kB / 450.5 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.62e-05/0.352, allocations: 27.23 kB / 450.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.3521, allocations: 13.5 kB / 450.6 MB, free: 9.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.3523, allocations: 220.6 kB / 450.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3523, allocations: 0 / 450.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000682/0.353, allocations: 118.9 kB / 450.9 MB, free: 9.406 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.0009737/0.354, allocations: 0.9364 MB / 451.8 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00096/0.355, allocations: 0.5641 MB / 452.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.355, allocations: 0 / 452.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005632/0.3555, allocations: 480.7 kB / 452.9 MB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.3559, allocations: 60.52 kB / 452.9 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004572/0.3605, allocations: 3.147 MB / 456.1 MB, free: 5.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.361, allocations: 0.7945 MB / 456.9 MB, free: 5.082 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.3611, allocations: 27.3 kB / 456.9 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.3612, allocations: 110.1 kB / 457 MB, free: 4.992 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3612, allocations: 0 / 457 MB, free: 4.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04491/0.4062, allocations: 8.785 MB / 465.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12, allocations: 7.859 kB / 465.8 MB, free: 2.457 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.552489299094304]