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.0007916/0.0007916, allocations: 83.69 kB / 20.67 MB, free: 3.879 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.0008886/0.0008886, allocations: 177.3 kB / 23.96 MB, free: 0.5977 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.8971/0.8971, allocations: 177.2 MB / 204.3 MB, free: 5.723 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.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 1.744e-06/1.744e-06, allocations: 3.938 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.416e-05/1.59e-05, allocations: 4.531 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003028/0.003044, allocations: 3.218 MB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.004152, allocations: 0.8218 MB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.004295, allocations: 7.938 kB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.004438, allocations: 79.22 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.004597, allocations: 138.6 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.004893, allocations: 139.8 kB / 329 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003484/0.005241, allocations: 0.5246 MB / 329.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.005402, allocations: 87.7 kB / 329.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.00566, allocations: 299.3 kB / 329.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.005799, allocations: 155.5 kB / 330 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.005838, allocations: 40 kB / 330.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.24e-05/0.0059, allocations: 40 kB / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.58e-05/0.005946, allocations: 95.66 kB / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.389e-05/0.00604, allocations: 155.6 kB / 330.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.006389, allocations: 0.5061 MB / 330.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.006392, allocations: 0 / 330.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.006392, allocations: 0 / 330.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.006397, allocations: 0 / 330.9 MB, free: 9.605 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.000664/0.007061, allocations: 0.6638 MB / 331.5 MB, free: 8.914 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.007094, allocations: 8.031 kB / 331.5 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.16e-05/0.007146, allocations: 74.72 kB / 331.6 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.007316, allocations: 84.56 kB / 331.7 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.007595, allocations: 269.5 kB / 332 MB, free: 8.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.007613, allocations: 28.97 kB / 332 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.007639, allocations: 28.38 kB / 332 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.008035, allocations: 432.4 kB / 332.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.008045, allocations: 192 / 332.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.008068, allocations: 16.12 kB / 332.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.008074, allocations: 8 kB / 332.5 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003198/0.008394, allocations: 270.4 kB / 332.7 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.009506, allocations: 1.288 MB / 334 MB, free: 6.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.009759, allocations: 187.5 kB / 334.2 MB, free: 6.078 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.009882, allocations: 108.8 kB / 334.3 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.009897, allocations: 0 / 334.3 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.009922, allocations: 42.55 kB / 334.3 MB, free: 5.918 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.009924, allocations: 3.984 kB / 334.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.000786/0.01071, allocations: 470.5 kB / 334.8 MB, free: 5.441 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.01074, allocations: 67.28 kB / 334.9 MB, free: 5.363 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.01095, allocations: 308.6 kB / 335.2 MB, free: 5.051 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.01097, allocations: 29.7 kB / 335.2 MB, free: 5.016 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.01107, allocations: 220.3 kB / 335.4 MB, free: 4.797 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.002e-05/0.01111, allocations: 87.31 kB / 335.5 MB, free: 4.711 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/0.01117, allocations: 49.64 kB / 335.5 MB, free: 4.656 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.796e-05/0.01126, allocations: 338.8 kB / 335.9 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.01137, allocations: 79.95 kB / 336 MB, free: 4.238 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.01149, allocations: 124.2 kB / 336.1 MB, free: 4.102 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.01172, allocations: 200.2 kB / 336.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01172, allocations: 0 / 336.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000396/0.01212, allocations: 355.7 kB / 336.6 MB, free: 3.527 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.01213, allocations: 4 kB / 336.6 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.01213, allocations: 0 / 336.6 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002464/0.01238, allocations: 118.4 kB / 336.7 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.067e-05/0.01247, allocations: 31.98 kB / 336.8 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.01472, allocations: 4.649 MB / 341.4 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.198e-05/0.01481, allocations: 23.88 kB / 341.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.01482, allocations: 12 kB / 341.5 MB, free: 14.33 MB / 314.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.0001195/0.01494, allocations: 154 kB / 341.6 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-05/0.01498, allocations: 39.7 kB / 341.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.01501, allocations: 39.27 kB / 341.7 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.01501, allocations: 4 kB / 341.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.01501, allocations: 0 / 341.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.01501, allocations: 0 / 341.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.01525, allocations: 312.4 kB / 342 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01525, allocations: 0 / 342 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.711e-05/0.0153, allocations: 19.98 kB / 342 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001786/0.01548, allocations: 118.4 kB / 342.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.01549, allocations: 7.938 kB / 342.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/0.01756, allocations: 4.638 MB / 346.8 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.01756, allocations: 4.031 kB / 346.8 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000352/0.01791, allocations: 396.6 kB / 347.2 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.727e-05/0.01798, allocations: 51.73 kB / 347.2 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.01799, allocations: 4 kB / 347.2 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.0181, allocations: 28.03 kB / 347.2 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.851e-05/0.01816, allocations: 32.31 kB / 347.3 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.01817, allocations: 4 kB / 347.3 MB, free: 8.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001382/0.01831, allocations: 219.1 kB / 347.5 MB, free: 7.879 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01831, allocations: 7.875 kB / 347.5 MB, free: 7.871 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003998/0.0187, allocations: 119.8 kB / 347.6 MB, free: 7.754 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.0005374/0.01924, allocations: 0.9372 MB / 348.6 MB, free: 6.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005324/0.01977, allocations: 0.5582 MB / 349.1 MB, free: 6.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01978, allocations: 0 / 349.1 MB, free: 6.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.02006, allocations: 474.2 kB / 349.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.02033, allocations: 53.59 kB / 349.6 MB, free: 5.629 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.02297, allocations: 3.16 MB / 352.8 MB, free: 2.336 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.02308, allocations: 194.8 kB / 353 MB, free: 2.129 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.227e-05/0.02316, allocations: 26.97 kB / 353 MB, free: 2.102 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.977e-05/0.02326, allocations: 112.5 kB / 353.1 MB, free: 1.992 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.02326, allocations: 0 / 353.1 MB, free: 1.992 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.05217, allocations: 9.444 MB / 362.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/7.782, allocations: 10.78 kB / 362.6 MB, free: 8.758 MB / 330.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/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: 9.501182971522212]