Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001709/0.001709, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.017/1.017, allocations: 177 MB / 204.8 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.146e-05/3.341e-05, allocations: 5.266 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003854/0.003887, allocations: 3.505 MB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.005667, allocations: 0.8335 MB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002247/0.005891, allocations: 4 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.006085, allocations: 71.28 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.006355, allocations: 150.6 kB / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004173/0.006772, allocations: 135.8 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005077/0.00728, allocations: 0.5285 MB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.007473, allocations: 99.58 kB / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003811/0.007854, allocations: 299.3 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.008027, allocations: 155.5 kB / 278.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.547e-05/0.008073, allocations: 40 kB / 278.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.361e-05/0.008156, allocations: 48 kB / 278.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-05/0.008212, allocations: 91.66 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.008326, allocations: 155.6 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.008677, allocations: 342.7 kB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.00868, allocations: 0 / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008681, allocations: 0 / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.008688, allocations: 3.938 kB / 279.4 MB, free: 10.97 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.0007506/0.009439, allocations: 0.7566 MB / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.009478, allocations: 8.031 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002349/0.009713, allocations: 104.6 kB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.01002, allocations: 268.4 kB / 280.5 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.01004, allocations: 29.03 kB / 280.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.053e-05/0.01007, allocations: 28.38 kB / 280.5 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/0.01046, allocations: 376.5 kB / 280.9 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.01047, allocations: 192 / 280.9 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.0105, allocations: 16.38 kB / 280.9 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.01051, allocations: 11.94 kB / 280.9 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.01071, allocations: 135.8 kB / 281.1 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.01193, allocations: 1.393 MB / 282.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.01217, allocations: 174.9 kB / 282.6 MB, free: 7.484 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.96e-05/0.01225, allocations: 55.66 kB / 282.7 MB, free: 7.426 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.01226, allocations: 8 kB / 282.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.01229, allocations: 41.39 kB / 282.7 MB, free: 7.367 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.01229, allocations: 0 / 282.7 MB, free: 7.367 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007119/0.013, allocations: 377.8 kB / 283.1 MB, free: 6.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.01303, allocations: 51.41 kB / 283.2 MB, free: 6.918 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.01324, allocations: 342.1 kB / 283.5 MB, free: 6.562 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.01326, allocations: 33.7 kB / 283.5 MB, free: 6.523 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003599/0.01362, allocations: 259.1 kB / 283.8 MB, free: 6.266 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.952e-05/0.01366, allocations: 71.34 kB / 283.8 MB, free: 6.195 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.364e-05/0.01372, allocations: 59.34 kB / 283.9 MB, free: 6.129 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.01384, allocations: 0.5079 MB / 284.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.719e-05/0.0139, allocations: 35.98 kB / 284.4 MB, free: 5.574 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.708e-05/0.01399, allocations: 94.33 kB / 284.5 MB, free: 5.461 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.01415, allocations: 142.2 kB / 284.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.01415, allocations: 0 / 284.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003348/0.01449, allocations: 272.2 kB / 284.9 MB, free: 5.016 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.0145, allocations: 10.66 kB / 285 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.01451, allocations: 0 / 285 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/0.01477, allocations: 99.05 kB / 285 MB, free: 4.898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.964e-05/0.01486, allocations: 35.92 kB / 285.1 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002946/0.01781, allocations: 6.178 MB / 291.3 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.01793, allocations: 31.77 kB / 291.3 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.01795, allocations: 12 kB / 291.3 MB, free: 14.28 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.000121/0.01807, allocations: 164.6 kB / 291.5 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.01811, allocations: 35.81 kB / 291.5 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.01814, allocations: 39.17 kB / 291.5 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.01814, allocations: 3.938 kB / 291.5 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.01815, allocations: 8.031 kB / 291.6 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.01815, allocations: 0 / 291.6 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.01837, allocations: 268.3 kB / 291.8 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01837, allocations: 0 / 291.8 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.013e-05/0.01842, allocations: 15.98 kB / 291.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001847/0.01861, allocations: 111.2 kB / 291.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.01862, allocations: 7.984 kB / 291.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002683/0.0213, allocations: 6.167 MB / 298.1 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.0213, allocations: 4 kB / 298.1 MB, free: 7.047 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/0.02163, allocations: 383.4 kB / 298.5 MB, free: 6.641 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.84e-05/0.02171, allocations: 51.72 kB / 298.5 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.02173, allocations: 4 kB / 298.5 MB, free: 6.586 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.02183, allocations: 19.98 kB / 298.6 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.649e-05/0.02191, allocations: 23.95 kB / 298.6 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.02192, allocations: 16.06 kB / 298.6 MB, free: 6.527 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001333/0.02205, allocations: 231 kB / 298.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02205, allocations: 0 / 298.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004818/0.02253, allocations: 119.7 kB / 298.9 MB, free: 6.188 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.0001089/0.02264, allocations: 107.2 kB / 299 MB, free: 6.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005672/0.02321, allocations: 0.6656 MB / 299.7 MB, free: 5.352 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.02321, allocations: 0 / 299.7 MB, free: 5.352 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002983/0.02351, allocations: 0.614 MB / 300.3 MB, free: 4.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.0238, allocations: 49.12 kB / 300.4 MB, free: 4.629 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.02489, allocations: 0.601 MB / 301 MB, free: 4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.052e-05/0.02497, allocations: 104.5 kB / 301.1 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.431e-05/0.02504, allocations: 26.28 kB / 301.1 MB, free: 3.855 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.857e-05/0.02509, allocations: 24.5 kB / 301.1 MB, free: 3.832 MB / 282.7 MB Notification: Performance of SimCode: time 1.333e-06/0.02509, allocations: 0 / 301.1 MB, free: 3.832 MB / 282.7 MB Notification: Performance of Templates: time 0.1109/0.136, allocations: 5.206 MB / 306.3 MB, free: 38.98 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.9521087938919663]