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.0007376/0.0007376, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009267/0.001664, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0006861/0.0006861, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008518/0.001538, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 0.9666/0.9666, allocations: 177.4 MB / 189.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08988/1.056, allocations: 53.87 MB / 243.8 MB, free: 14.91 MB / 250.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.212e-06/1.212e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.833e-05, allocations: 6.312 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003271/0.00329, allocations: 3.515 MB / 248.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.004546, allocations: 0.872 MB / 249.4 MB, free: 9.215 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.004698, allocations: 7.938 kB / 249.4 MB, free: 9.207 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.004801, allocations: 63.36 kB / 249.5 MB, free: 9.145 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.004983, allocations: 150.6 kB / 249.6 MB, free: 8.996 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.005217, allocations: 135.7 kB / 249.8 MB, free: 8.863 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.00561, allocations: 0.5402 MB / 250.3 MB, free: 8.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.005776, allocations: 100.3 kB / 250.4 MB, free: 8.219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003381/0.006114, allocations: 330.4 kB / 250.7 MB, free: 7.898 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.006303, allocations: 151.6 kB / 250.9 MB, free: 7.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.972e-05/0.006343, allocations: 44 kB / 250.9 MB, free: 7.707 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.575e-05/0.006439, allocations: 51.92 kB / 251 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.086e-05/0.00648, allocations: 63.75 kB / 251 MB, free: 7.594 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.307e-05/0.006573, allocations: 127.8 kB / 251.2 MB, free: 7.469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.006855, allocations: 314.8 kB / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.44e-05/0.00687, allocations: 0 / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006871, allocations: 0 / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.68e-05/0.006887, allocations: 0 / 251.5 MB, free: 7.16 MB / 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.0007622/0.00765, allocations: 0.7331 MB / 252.2 MB, free: 6.402 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.007678, allocations: 8.031 kB / 252.2 MB, free: 6.395 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.007895, allocations: 158 kB / 252.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.008142, allocations: 237.6 kB / 252.6 MB, free: 5.961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.008159, allocations: 25.03 kB / 252.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.008184, allocations: 28.38 kB / 252.6 MB, free: 5.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.008467, allocations: 357 kB / 253 MB, free: 5.523 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.008477, allocations: 192 / 253 MB, free: 5.523 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.008497, allocations: 20.36 kB / 253 MB, free: 5.504 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.008505, allocations: 11.94 kB / 253 MB, free: 5.492 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000111/0.008616, allocations: 88.48 kB / 253.1 MB, free: 5.402 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.009631, allocations: 1.031 MB / 254.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.009792, allocations: 134.5 kB / 254.3 MB, free: 4.168 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.693e-05/0.009838, allocations: 48.83 kB / 254.3 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.009855, allocations: 4 kB / 254.3 MB, free: 4.113 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.009876, allocations: 34.56 kB / 254.4 MB, free: 4.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.032e-06/0.009877, allocations: 0 / 254.4 MB, free: 4.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005248/0.0104, allocations: 301.9 kB / 254.7 MB, free: 3.762 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.219e-05/0.01042, allocations: 51.41 kB / 254.7 MB, free: 3.699 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.01056, allocations: 278.9 kB / 255 MB, free: 3.418 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.01058, allocations: 25.7 kB / 255 MB, free: 3.387 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.01066, allocations: 193 kB / 255.2 MB, free: 3.191 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.862e-05/0.01069, allocations: 79.33 kB / 255.3 MB, free: 3.113 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.01075, allocations: 53.61 kB / 255.3 MB, free: 3.055 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.018e-05/0.01083, allocations: 350.7 kB / 255.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.515e-05/0.01086, allocations: 28 kB / 255.7 MB, free: 2.676 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.359e-05/0.01092, allocations: 64.25 kB / 255.8 MB, free: 2.598 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/0.01102, allocations: 112 kB / 255.9 MB, free: 2.473 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01102, allocations: 0 / 255.9 MB, free: 2.473 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002222/0.01124, allocations: 207.8 kB / 256.1 MB, free: 2.254 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.01126, allocations: 4 kB / 256.1 MB, free: 2.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.01127, allocations: 12.05 kB / 256.1 MB, free: 2.238 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/0.01146, allocations: 90.5 kB / 256.2 MB, free: 2.141 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.815e-05/0.01155, allocations: 31.97 kB / 256.2 MB, free: 2.109 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.01362, allocations: 4.158 MB / 260.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.446e-05/0.0137, allocations: 24.03 kB / 260.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.01371, allocations: 8 kB / 260.4 MB, free: 13.66 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 (With_Ron_Goff_Vknee.off,With_Ron_Goff.off,Ideal.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 8.557e-05/0.0138, allocations: 121.8 kB / 260.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.33e-05/0.01383, allocations: 31.98 kB / 260.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.98e-05/0.01386, allocations: 39.17 kB / 260.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.01387, allocations: 4 kB / 260.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.01387, allocations: 3.984 kB / 260.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.01387, allocations: 0 / 260.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.01404, allocations: 177.7 kB / 260.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.01405, allocations: 0 / 260.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.788e-05/0.0141, allocations: 23.92 kB / 260.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.01415, allocations: 39.73 kB / 260.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001482/0.0143, allocations: 82.52 kB / 260.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.01431, allocations: 11.94 kB / 260.9 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001916/0.01622, allocations: 4.142 MB / 265.1 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.01623, allocations: 4 kB / 265.1 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.01641, allocations: 267.2 kB / 265.3 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.01643, allocations: 4 kB / 265.3 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.659e-05/0.01652, allocations: 19.98 kB / 265.3 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.174e-05/0.01658, allocations: 27.95 kB / 265.4 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.01659, allocations: 7.984 kB / 265.4 MB, free: 8.355 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.22e-05/0.01666, allocations: 104.7 kB / 265.5 MB, free: 8.254 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01666, allocations: 0 / 265.5 MB, free: 8.254 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004382/0.0171, allocations: 123.7 kB / 265.6 MB, free: 8.133 MB / 266.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 9.261e-05/0.01719, allocations: 84.36 kB / 265.7 MB, free: 8.043 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000364/0.01756, allocations: 479.5 kB / 266.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/0.01757, allocations: 8 kB / 266.2 MB, free: 7.527 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002055/0.01777, allocations: 440.5 kB / 266.6 MB, free: 7.055 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.01801, allocations: 81.06 kB / 266.7 MB, free: 6.977 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.02101, allocations: 0.6446 MB / 267.3 MB, free: 6.301 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.869e-05/0.02108, allocations: 96.61 kB / 267.4 MB, free: 6.188 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.115e-05/0.02116, allocations: 30.27 kB / 267.4 MB, free: 6.156 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.02129, allocations: 99.34 kB / 267.5 MB, free: 6.059 MB / 266.7 MB Notification: Performance of SimCode: time 1.382e-06/0.02129, allocations: 0 / 267.5 MB, free: 6.059 MB / 266.7 MB Notification: Performance of Templates: time 0.007694/0.02898, allocations: 5.401 MB / 272.9 MB, free: 0.7305 MB / 266.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 -ignoreHideResult -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.6590357329696417]