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.0008415/0.0008415, 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.001009/0.001009, 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.8827/0.8827, allocations: 173.3 MB / 200.4 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 1.894e-06/1.894e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.628e-05/2.817e-05, allocations: 5.516 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00353/0.003558, allocations: 3.177 MB / 321.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.005078, allocations: 0.7284 MB / 322.3 MB, free: 2.406 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002509/0.005329, allocations: 7.938 kB / 322.4 MB, free: 2.398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.00551, allocations: 75.28 kB / 322.4 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002323/0.005742, allocations: 142.6 kB / 322.6 MB, free: 2.184 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.006087, allocations: 111.8 kB / 322.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005591/0.006647, allocations: 0.5208 MB / 323.2 MB, free: 1.551 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.006837, allocations: 87.7 kB / 323.3 MB, free: 1.461 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003608/0.007198, allocations: 287.3 kB / 323.6 MB, free: 1.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.007353, allocations: 155.5 kB / 323.7 MB, free: 1.027 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.291e-05/0.007406, allocations: 44 kB / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.783e-05/0.007444, allocations: 40 kB / 323.8 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.494e-05/0.007499, allocations: 91.59 kB / 323.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.00761, allocations: 155.7 kB / 324 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004078/0.008018, allocations: 0.4983 MB / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.008022, allocations: 0 / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.008024, allocations: 0 / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.008031, 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.001178/0.009209, allocations: 0.6457 MB / 325.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.009259, allocations: 8.922 kB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.265e-05/0.009332, allocations: 74.72 kB / 325.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.013e-05/0.009412, allocations: 52.61 kB / 325.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005406/0.009953, allocations: 265.5 kB / 325.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.009981, allocations: 25.03 kB / 325.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.532e-05/0.01003, allocations: 32.38 kB / 325.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006545/0.01068, allocations: 436.4 kB / 326.1 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.01069, allocations: 192 / 326.1 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/0.01073, allocations: 19 kB / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.01074, allocations: 8 kB / 326.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005269/0.01126, allocations: 270.4 kB / 326.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.01269, allocations: 1.276 MB / 327.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000317/0.013, allocations: 194.4 kB / 327.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.01315, allocations: 98.64 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.01317, allocations: 8 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.0132, allocations: 38.5 kB / 328 MB, free: 12.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.545e-06/0.0132, allocations: 0 / 328 MB, free: 12.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001117/0.01432, allocations: 478.9 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.01437, allocations: 59.41 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.01469, allocations: 308.5 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.01472, allocations: 33.7 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.01485, allocations: 212.4 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.968e-05/0.01491, allocations: 83.27 kB / 329.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.2e-05/0.015, allocations: 45.7 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.01511, allocations: 346.7 kB / 329.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.01527, allocations: 79.97 kB / 329.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.01545, allocations: 124.2 kB / 329.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.0158, allocations: 200.2 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.01581, allocations: 0 / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004618/0.01627, allocations: 359.6 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.01628, allocations: 8 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.01629, allocations: 4 kB / 330.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/0.01657, allocations: 110.4 kB / 330.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.01668, allocations: 39.91 kB / 330.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002728/0.01941, allocations: 4.637 MB / 335 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.01951, allocations: 19.91 kB / 335 MB, free: 5.016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.01953, allocations: 12 kB / 335.1 MB, free: 5.004 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.000128/0.01966, allocations: 153.8 kB / 335.2 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.664e-05/0.01969, allocations: 35.77 kB / 335.2 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.01972, allocations: 39.27 kB / 335.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.01973, allocations: 4 kB / 335.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.01973, allocations: 0 / 335.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.01973, allocations: 7.922 kB / 335.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.01998, allocations: 308.5 kB / 335.6 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.01998, allocations: 0 / 335.6 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.042e-05/0.02003, allocations: 19.98 kB / 335.6 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003246/0.02035, allocations: 118.6 kB / 335.7 MB, free: 4.273 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.02037, allocations: 8 kB / 335.7 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002557/0.02292, allocations: 4.637 MB / 340.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.02293, allocations: 3.938 kB / 340.4 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.02328, allocations: 393.7 kB / 340.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.356e-05/0.02335, allocations: 47.77 kB / 340.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.02337, allocations: 4 kB / 340.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.02348, allocations: 24.05 kB / 340.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.058e-05/0.02355, allocations: 27.89 kB / 340.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.02356, allocations: 12 kB / 340.9 MB, free: 14.76 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001435/0.02371, allocations: 215.1 kB / 341.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02371, allocations: 7.938 kB / 341.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000442/0.02415, allocations: 111.8 kB / 341.2 MB, free: 14.43 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.0005534/0.0247, allocations: 0.9429 MB / 342.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005274/0.02523, 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.974e-06/0.02523, allocations: 0 / 342.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002774/0.02551, allocations: 475.9 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.0003359/0.02585, allocations: 65.12 kB / 343.2 MB, free: 12.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.02878, allocations: 3.116 MB / 346.4 MB, free: 9.043 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.02921, allocations: 190.8 kB / 346.5 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.32e-05/0.0293, allocations: 27.02 kB / 346.6 MB, free: 8.801 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.02941, allocations: 112.5 kB / 346.7 MB, free: 8.691 MB / 314.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02941, allocations: 0 / 346.7 MB, free: 8.691 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.05688, allocations: 9.34 MB / 356 MB, free: 15.56 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/7.944, allocations: 19.78 kB / 356 MB, free: 15.54 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.720497362315655]