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.0009268/0.0009268, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.000875/0.000875, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 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.9461/0.9461, allocations: 173.3 MB / 201.1 MB, free: 9.328 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: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.948e-05/3.125e-05, allocations: 6.25 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004736/0.004767, allocations: 3.458 MB / 271.5 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.006292, allocations: 0.7478 MB / 272.2 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002678/0.006559, allocations: 7.938 kB / 272.2 MB, free: 2.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.006791, allocations: 71.28 kB / 272.3 MB, free: 2.102 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.007095, allocations: 146.6 kB / 272.4 MB, free: 1.957 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003762/0.007471, allocations: 107.8 kB / 272.5 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006507/0.008122, allocations: 0.5247 MB / 273.1 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.008365, allocations: 91.69 kB / 273.1 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004608/0.008825, allocations: 291.3 kB / 273.4 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002706/0.009096, allocations: 155.6 kB / 273.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.862e-05/0.009175, allocations: 40 kB / 273.6 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.885e-05/0.009243, allocations: 40 kB / 273.7 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.816e-05/0.009322, allocations: 91.61 kB / 273.8 MB, free: 0.625 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.0095, allocations: 155.6 kB / 273.9 MB, free: 484 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004733/0.009974, allocations: 330.7 kB / 274.2 MB, free: 152 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.00998, allocations: 0 / 274.2 MB, free: 152 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.009981, allocations: 4 kB / 274.2 MB, free: 148 kB / 250.7 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.009992, allocations: 0 / 274.2 MB, free: 148 kB / 250.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.001032/0.01102, allocations: 0.7489 MB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.01107, allocations: 8.031 kB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.01121, allocations: 76.66 kB / 275.1 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.01161, allocations: 256.4 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.78e-05/0.01163, allocations: 25.03 kB / 275.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.01168, allocations: 32.38 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.01219, allocations: 380.4 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.0122, allocations: 192 / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.887e-05/0.01223, allocations: 16.38 kB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.01224, allocations: 11.94 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002149/0.01246, allocations: 135.8 kB / 275.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.01382, allocations: 1.393 MB / 277.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002507/0.01407, allocations: 171 kB / 277.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.246e-05/0.01416, allocations: 61.28 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.01418, allocations: 4 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.0142, allocations: 41.33 kB / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.522e-06/0.0142, allocations: 0 / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008026/0.01501, allocations: 379.6 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.01504, allocations: 51.41 kB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.01524, allocations: 334.2 kB / 278.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.01526, allocations: 25.7 kB / 278.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.01538, allocations: 263.1 kB / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.379e-05/0.01543, allocations: 79.33 kB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.625e-05/0.01549, allocations: 55.31 kB / 278.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.01562, allocations: 0.504 MB / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.424e-05/0.01569, allocations: 35.98 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.175e-05/0.01578, allocations: 98.33 kB / 279.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/0.01594, allocations: 138.3 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.01594, allocations: 0 / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003316/0.01627, allocations: 272.2 kB / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.01629, allocations: 4 kB / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.0163, allocations: 0 / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002664/0.01656, allocations: 115 kB / 279.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.01667, allocations: 27.98 kB / 279.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002697/0.01936, allocations: 6.178 MB / 286.1 MB, free: 3.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.01947, allocations: 27.81 kB / 286.1 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.01949, allocations: 8 kB / 286.1 MB, free: 3.516 MB / 266.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.0001083/0.0196, allocations: 168.5 kB / 286.3 MB, free: 3.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.01964, allocations: 39.81 kB / 286.3 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.888e-05/0.01966, allocations: 42.47 kB / 286.4 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.01967, allocations: 4 kB / 286.4 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.01967, allocations: 0 / 286.4 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.01967, allocations: 3.984 kB / 286.4 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.01989, allocations: 260.3 kB / 286.6 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.01989, allocations: 128 / 286.6 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.028e-05/0.01994, allocations: 19.98 kB / 286.6 MB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.02012, allocations: 102.9 kB / 286.7 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.02013, allocations: 7.984 kB / 286.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002347/0.02248, allocations: 6.178 MB / 292.9 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.02248, allocations: 4.172 kB / 292.9 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.02279, allocations: 382.4 kB / 293.3 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.29e-05/0.02287, allocations: 51.66 kB / 293.4 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.02289, allocations: 8 kB / 293.4 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.02299, allocations: 19.98 kB / 293.4 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.02306, allocations: 23.95 kB / 293.4 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.02307, allocations: 15.88 kB / 293.4 MB, free: 11.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001282/0.0232, allocations: 227 kB / 293.6 MB, free: 11.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0232, allocations: 4.031 kB / 293.6 MB, free: 11.53 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004536/0.02365, allocations: 119.7 kB / 293.8 MB, free: 11.41 MB / 282.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.0001173/0.02377, allocations: 99.25 kB / 293.9 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005312/0.0243, allocations: 0.6539 MB / 294.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.0243, allocations: 4.125 kB / 294.5 MB, free: 10.59 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002876/0.02459, allocations: 0.605 MB / 295.1 MB, free: 9.934 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.02488, allocations: 52.75 kB / 295.2 MB, free: 9.883 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.02593, allocations: 0.602 MB / 295.8 MB, free: 9.246 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.616e-05/0.026, allocations: 104.5 kB / 295.9 MB, free: 9.125 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.149e-05/0.02606, allocations: 26.22 kB / 295.9 MB, free: 9.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.501e-05/0.02611, allocations: 28.48 kB / 295.9 MB, free: 9.074 MB / 282.7 MB Notification: Performance of SimCode: time 1.663e-06/0.02611, allocations: 0 / 295.9 MB, free: 9.074 MB / 282.7 MB Notification: Performance of Templates: time 0.007129/0.03324, allocations: 5.208 MB / 301.1 MB, free: 3.934 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.054763904772699]