Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001474/0.001474, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001908/0.001908, allocations: 162.3 kB / 25.6 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.16/1.16, allocations: 158.6 MB / 187.5 MB, free: 2.824 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.762e-05/2.946e-05, allocations: 2.312 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003697/0.003726, allocations: 3.374 MB / 254.8 MB, free: 3.859 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.00512, allocations: 0.776 MB / 255.6 MB, free: 3.074 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002067/0.005327, allocations: 11.94 kB / 255.6 MB, free: 3.062 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.005513, allocations: 71.3 kB / 255.7 MB, free: 2.992 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.005705, allocations: 142.6 kB / 255.8 MB, free: 2.852 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002978/0.006002, allocations: 111.8 kB / 255.9 MB, free: 2.742 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003942/0.006397, allocations: 0.5285 MB / 256.5 MB, free: 2.211 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.006577, allocations: 91.66 kB / 256.6 MB, free: 2.121 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002909/0.006868, allocations: 287.4 kB / 256.8 MB, free: 1.84 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.007036, allocations: 155.5 kB / 257 MB, free: 1.688 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.923e-05/0.007086, allocations: 40 kB / 257 MB, free: 1.648 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.487e-05/0.00713, allocations: 40 kB / 257.1 MB, free: 1.609 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.975e-05/0.00719, allocations: 95.61 kB / 257.2 MB, free: 1.512 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.007294, allocations: 147.7 kB / 257.3 MB, free: 1.367 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.007594, allocations: 342.7 kB / 257.7 MB, free: 1.031 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.007596, allocations: 0 / 257.7 MB, free: 1.031 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.007597, allocations: 0 / 257.7 MB, free: 1.031 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.007602, allocations: 4 kB / 257.7 MB, free: 1.027 MB / 234.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.0007833/0.008385, allocations: 0.7527 MB / 258.4 MB, free: 240 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.008429, allocations: 8.031 kB / 258.4 MB, free: 232 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.446e-05/0.008504, allocations: 72.66 kB / 258.5 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.008781, allocations: 256.6 kB / 258.7 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.008802, allocations: 21.03 kB / 258.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.008832, allocations: 32.38 kB / 258.8 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.009182, allocations: 368.3 kB / 259.1 MB, free: 15.42 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.009194, allocations: 192 / 259.1 MB, free: 15.42 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.009215, allocations: 16.38 kB / 259.2 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.009227, allocations: 11.94 kB / 259.2 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001325/0.00936, allocations: 108.4 kB / 259.3 MB, free: 15.29 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.01071, allocations: 1.335 MB / 260.6 MB, free: 13.87 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.01093, allocations: 151 kB / 260.8 MB, free: 13.71 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.455e-05/0.01098, allocations: 51.61 kB / 260.8 MB, free: 13.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.011, allocations: 7.984 kB / 260.8 MB, free: 13.65 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.01103, allocations: 45.38 kB / 260.9 MB, free: 13.59 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.01103, allocations: 0 / 260.9 MB, free: 13.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006632/0.01169, allocations: 336.6 kB / 261.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.01172, allocations: 55.41 kB / 261.3 MB, free: 13.18 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002823/0.012, allocations: 330 kB / 261.6 MB, free: 12.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.01202, allocations: 29.7 kB / 261.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.01216, allocations: 267.1 kB / 261.9 MB, free: 12.53 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.01221, allocations: 79.27 kB / 261.9 MB, free: 12.45 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.475e-05/0.01227, allocations: 55.34 kB / 262 MB, free: 12.39 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.01243, allocations: 0.5156 MB / 262.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.34e-05/0.01247, allocations: 23.98 kB / 262.5 MB, free: 11.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.636e-05/0.01256, allocations: 86.39 kB / 262.6 MB, free: 11.73 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.01268, allocations: 126.2 kB / 262.7 MB, free: 11.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01269, allocations: 0 / 262.7 MB, free: 11.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000299/0.01299, allocations: 248.2 kB / 263 MB, free: 11.33 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.013, allocations: 7.984 kB / 263 MB, free: 11.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.01301, allocations: 4 kB / 263 MB, free: 11.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004255/0.01344, allocations: 98.91 kB / 263.1 MB, free: 11.21 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.171e-05/0.01353, allocations: 31.98 kB / 263.1 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003285/0.01681, allocations: 6.097 MB / 269.2 MB, free: 4.742 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.82e-05/0.01691, allocations: 19.83 kB / 269.2 MB, free: 4.723 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.01692, allocations: 8.094 kB / 269.2 MB, free: 4.715 MB / 250.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 0.0001345/0.01706, allocations: 168.6 kB / 269.4 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/0.0171, allocations: 47.7 kB / 269.5 MB, free: 4.492 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.01714, allocations: 34.41 kB / 269.5 MB, free: 4.453 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.01714, allocations: 7.984 kB / 269.5 MB, free: 4.445 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.01714, allocations: 0 / 269.5 MB, free: 4.445 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.01715, allocations: 0 / 269.5 MB, free: 4.445 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.01738, allocations: 209 kB / 269.7 MB, free: 4.215 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.01738, allocations: 0 / 269.7 MB, free: 4.215 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.647e-05/0.01742, allocations: 23.92 kB / 269.7 MB, free: 4.191 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000189/0.01761, allocations: 98.92 kB / 269.8 MB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.01762, allocations: 4 kB / 269.8 MB, free: 4.078 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003158/0.02078, allocations: 6.086 MB / 275.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.02078, allocations: 0 / 275.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003609/0.02114, allocations: 367.2 kB / 276.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.591e-05/0.02123, allocations: 47.72 kB / 276.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.02125, allocations: 8.094 kB / 276.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.02135, allocations: 23.98 kB / 276.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.21e-05/0.02144, allocations: 31.94 kB / 276.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.02146, allocations: 11.92 kB / 276.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001161/0.02158, allocations: 214.9 kB / 276.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.02158, allocations: 0 / 276.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004579/0.02203, allocations: 119.8 kB / 276.7 MB, free: 12.82 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 0.0001173/0.02215, allocations: 103.2 kB / 276.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004975/0.02265, allocations: 0.645 MB / 277.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.02265, allocations: 0 / 277.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002845/0.02294, allocations: 0.5946 MB / 278.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.02326, allocations: 60.88 kB / 278.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.02436, allocations: 0.5995 MB / 278.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.891e-05/0.02446, allocations: 108.5 kB / 278.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.92e-05/0.02453, allocations: 18.28 kB / 278.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.02468, allocations: 130.2 kB / 279 MB, free: 10.39 MB / 266.7 MB Notification: Performance of SimCode: time 1.173e-06/0.02468, allocations: 0 / 279 MB, free: 10.39 MB / 266.7 MB Notification: Performance of Templates: time 0.008511/0.03319, allocations: 5.295 MB / 284.3 MB, free: 5.137 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.0687293210066855]