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.0009739/0.0009739, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009235/0.0009235, allocations: 162.6 kB / 24.99 MB, free: 9.273 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 1.009/1.009, allocations: 177.1 MB / 205.3 MB, free: 5.637 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: 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.1.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.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.765e-06/2.765e-06, allocations: 4 kB / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.601e-05/2.877e-05, allocations: 2.312 kB / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004213/0.004242, allocations: 3.489 MB / 276.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.005382, allocations: 0.8218 MB / 277.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.005527, allocations: 11.94 kB / 277.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.005688, allocations: 67.23 kB / 277.5 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.005867, allocations: 150.7 kB / 277.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.006204, allocations: 135.7 kB / 277.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004198/0.006624, allocations: 0.5286 MB / 278.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.006803, allocations: 95.62 kB / 278.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.007116, allocations: 295.4 kB / 278.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.007276, allocations: 155.5 kB / 278.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.489e-05/0.007321, allocations: 40 kB / 278.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.358e-05/0.007395, allocations: 44 kB / 278.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.289e-05/0.007448, allocations: 91.61 kB / 279 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.007557, allocations: 151.7 kB / 279.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.007879, allocations: 342.7 kB / 279.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.007881, allocations: 0 / 279.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.007882, allocations: 0 / 279.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.007887, allocations: 4 kB / 279.5 MB, free: 11.41 MB / 266.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.0007458/0.008633, allocations: 0.7488 MB / 280.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.00867, allocations: 8.031 kB / 280.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.008888, allocations: 108.6 kB / 280.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.009173, allocations: 272.4 kB / 280.6 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.00919, allocations: 25.03 kB / 280.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.128e-05/0.009221, allocations: 28.38 kB / 280.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003829/0.009604, allocations: 380.4 kB / 281 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.009614, allocations: 192 / 281 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.009637, allocations: 20.38 kB / 281 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.009647, allocations: 11.94 kB / 281 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002162/0.009863, allocations: 139.8 kB / 281.2 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.01103, allocations: 1.389 MB / 282.6 MB, free: 8.102 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.01126, allocations: 167 kB / 282.7 MB, free: 7.926 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.04e-05/0.01135, allocations: 62.05 kB / 282.8 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.01136, allocations: 8 kB / 282.8 MB, free: 7.855 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.01139, allocations: 45.38 kB / 282.8 MB, free: 7.801 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.452e-06/0.01139, allocations: 0 / 282.8 MB, free: 7.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007723/0.01217, allocations: 368.5 kB / 283.2 MB, free: 7.422 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.0122, allocations: 55.34 kB / 283.3 MB, free: 7.355 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.01246, allocations: 342.2 kB / 283.6 MB, free: 7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.01248, allocations: 29.7 kB / 283.6 MB, free: 6.965 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.0126, allocations: 263.1 kB / 283.9 MB, free: 6.703 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.523e-05/0.01265, allocations: 87.25 kB / 284 MB, free: 6.617 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.427e-05/0.01271, allocations: 55.36 kB / 284 MB, free: 6.555 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.01285, allocations: 0.504 MB / 284.5 MB, free: 6.039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.049e-05/0.01292, allocations: 35.97 kB / 284.6 MB, free: 6.004 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.447e-05/0.01301, allocations: 90.41 kB / 284.6 MB, free: 5.895 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.01318, allocations: 134.3 kB / 284.8 MB, free: 5.742 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01318, allocations: 0 / 284.8 MB, free: 5.742 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003505/0.01353, allocations: 284.2 kB / 285.1 MB, free: 5.445 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.01354, allocations: 4 kB / 285.1 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.01355, allocations: 0 / 285.1 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002579/0.01381, allocations: 102.9 kB / 285.2 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.732e-05/0.0139, allocations: 35.97 kB / 285.2 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00282/0.01672, allocations: 6.182 MB / 291.4 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.299e-05/0.01682, allocations: 35.72 kB / 291.4 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.01683, allocations: 12 kB / 291.4 MB, free: 14.7 MB / 282.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.0001146/0.01695, allocations: 168.7 kB / 291.6 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.01699, allocations: 39.81 kB / 291.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.551e-05/0.01703, allocations: 35.17 kB / 291.7 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.01703, allocations: 4 kB / 291.7 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.01703, allocations: 0 / 291.7 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.01703, allocations: 3.984 kB / 291.7 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.01726, allocations: 268.3 kB / 291.9 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.01727, allocations: 0 / 291.9 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.757e-05/0.01731, allocations: 27.92 kB / 292 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001781/0.01749, allocations: 98.98 kB / 292.1 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.0175, allocations: 4 kB / 292.1 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002541/0.02005, allocations: 6.176 MB / 298.2 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.02005, allocations: 0 / 298.2 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003117/0.02036, allocations: 382.4 kB / 298.6 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.999e-05/0.02043, allocations: 51.72 kB / 298.7 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.02045, allocations: 4 kB / 298.7 MB, free: 7.012 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.02055, allocations: 24.05 kB / 298.7 MB, free: 6.988 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.62e-05/0.02063, allocations: 31.88 kB / 298.7 MB, free: 6.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.02065, allocations: 11.94 kB / 298.7 MB, free: 6.945 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001414/0.02079, allocations: 231 kB / 299 MB, free: 6.723 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02079, allocations: 0 / 299 MB, free: 6.723 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004255/0.02121, allocations: 119.7 kB / 299.1 MB, free: 6.605 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.0001005/0.02131, allocations: 103.3 kB / 299.2 MB, free: 6.492 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005332/0.02185, allocations: 0.6607 MB / 299.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.02185, allocations: 0 / 299.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.02215, allocations: 0.5985 MB / 300.4 MB, free: 5.121 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.02243, allocations: 58.09 kB / 300.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.02348, allocations: 0.6158 MB / 301.1 MB, free: 4.422 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.847e-05/0.02355, allocations: 100.6 kB / 301.2 MB, free: 4.301 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.47e-05/0.02361, allocations: 14.3 kB / 301.2 MB, free: 4.289 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.696e-05/0.02366, allocations: 32.48 kB / 301.2 MB, free: 4.258 MB / 282.7 MB Notification: Performance of SimCode: time 7.42e-07/0.02366, allocations: 0 / 301.2 MB, free: 4.258 MB / 282.7 MB Notification: Performance of Templates: time 0.1099/0.1336, allocations: 5.005 MB / 306.3 MB, free: 41.19 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.982247761916369]