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.0009928/0.0009928, allocations: 76.81 kB / 22.28 MB, free: 2.211 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.001153/0.001153, allocations: 165 kB / 25.69 MB, free: 7.848 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 0.8926/0.8926, allocations: 158.6 MB / 187.6 MB, free: 2.797 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.172e-06/1.172e-06, allocations: 0 / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.637e-05/1.754e-05, allocations: 6.25 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003086/0.003103, allocations: 3.425 MB / 255 MB, free: 3.781 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009672/0.004071, allocations: 0.8107 MB / 255.8 MB, free: 2.961 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.004198, allocations: 4 kB / 255.8 MB, free: 2.957 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001497/0.004348, allocations: 79.22 kB / 255.9 MB, free: 2.879 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.004518, allocations: 138.7 kB / 256 MB, free: 2.742 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.004757, allocations: 111.8 kB / 256.1 MB, free: 2.633 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.005105, allocations: 0.5285 MB / 256.7 MB, free: 2.102 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.005256, allocations: 104.2 kB / 256.8 MB, free: 1.996 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.00549, allocations: 279.4 kB / 257 MB, free: 1.723 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000171/0.005661, allocations: 155.6 kB / 257.2 MB, free: 1.566 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.261e-05/0.005704, allocations: 40 kB / 257.2 MB, free: 1.527 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.941e-05/0.005743, allocations: 40 kB / 257.3 MB, free: 1.488 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.2e-05/0.005795, allocations: 91.59 kB / 257.4 MB, free: 1.398 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.275e-05/0.005888, allocations: 151.7 kB / 257.5 MB, free: 1.25 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.006148, allocations: 338.7 kB / 257.8 MB, free: 0.918 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.006149, allocations: 0 / 257.8 MB, free: 0.918 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.00615, allocations: 4 kB / 257.8 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.006155, allocations: 0 / 257.8 MB, free: 0.9141 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.0005973/0.006752, allocations: 0.628 MB / 258.5 MB, free: 268 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.006782, allocations: 12.03 kB / 258.5 MB, free: 256 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.586e-05/0.006848, allocations: 60.89 kB / 258.5 MB, free: 196 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.007079, allocations: 217.8 kB / 258.8 MB, free: 15.95 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.007097, allocations: 21.03 kB / 258.8 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.007124, allocations: 36.38 kB / 258.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.007415, allocations: 349.1 kB / 259.2 MB, free: 15.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.007426, allocations: 4.125 kB / 259.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.007444, allocations: 12.38 kB / 259.2 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.007453, allocations: 15.94 kB / 259.2 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.007582, allocations: 92.53 kB / 259.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009235/0.008505, allocations: 1.031 MB / 260.3 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.008663, allocations: 138.5 kB / 260.4 MB, free: 14.15 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.948e-05/0.008713, allocations: 40.84 kB / 260.5 MB, free: 14.11 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.008731, allocations: 8 kB / 260.5 MB, free: 14.1 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.008753, allocations: 34.56 kB / 260.5 MB, free: 14.05 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.142e-06/0.008754, allocations: 0 / 260.5 MB, free: 14.05 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005269/0.009281, allocations: 304.2 kB / 260.8 MB, free: 13.74 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/0.009305, allocations: 55.41 kB / 260.9 MB, free: 13.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.009449, allocations: 266.9 kB / 261.1 MB, free: 13.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.009469, allocations: 37.64 kB / 261.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.507e-05/0.009544, allocations: 188.9 kB / 261.4 MB, free: 13.17 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.593e-05/0.00958, allocations: 79.33 kB / 261.4 MB, free: 13.09 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-05/0.009634, allocations: 53.67 kB / 261.5 MB, free: 13.04 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.892e-05/0.009712, allocations: 338.7 kB / 261.8 MB, free: 12.7 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.521e-05/0.009748, allocations: 23.98 kB / 261.8 MB, free: 12.67 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.741e-05/0.009805, allocations: 72.23 kB / 261.9 MB, free: 12.59 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.009908, allocations: 108 kB / 262 MB, free: 12.46 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.00991, allocations: 0 / 262 MB, free: 12.46 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002204/0.01013, allocations: 207.9 kB / 262.2 MB, free: 12.25 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.01014, allocations: 8 kB / 262.2 MB, free: 12.24 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.01015, allocations: 3.938 kB / 262.2 MB, free: 12.23 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.01033, allocations: 82.5 kB / 262.3 MB, free: 12.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.091e-05/0.01041, allocations: 35.97 kB / 262.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.01223, allocations: 4.157 MB / 266.5 MB, free: 7.699 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.747e-05/0.0123, allocations: 27.83 kB / 266.5 MB, free: 7.672 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.01231, allocations: 4 kB / 266.5 MB, free: 7.668 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 8.265e-05/0.0124, allocations: 121.9 kB / 266.7 MB, free: 7.539 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.977e-05/0.01244, allocations: 35.91 kB / 266.7 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.01246, allocations: 34.41 kB / 266.7 MB, free: 7.465 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.11e-07/0.01246, allocations: 0 / 266.7 MB, free: 7.465 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.92e-07/0.01246, allocations: 0 / 266.7 MB, free: 7.465 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.01247, allocations: 0 / 266.7 MB, free: 7.465 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.01263, allocations: 181.6 kB / 266.9 MB, free: 7.27 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01263, allocations: 0 / 266.9 MB, free: 7.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.609e-05/0.01268, allocations: 27.92 kB / 266.9 MB, free: 7.242 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001396/0.01282, allocations: 94.61 kB / 267 MB, free: 7.141 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.01283, allocations: 4 kB / 267 MB, free: 7.137 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.0145, allocations: 4.142 MB / 271.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.0145, allocations: 0 / 271.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.01468, allocations: 270.4 kB / 271.4 MB, free: 2.453 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.01474, allocations: 31.75 kB / 271.5 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.01475, allocations: 7.984 kB / 271.5 MB, free: 2.414 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.061e-05/0.01485, allocations: 20.12 kB / 271.5 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.0149, allocations: 31.97 kB / 271.5 MB, free: 2.363 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.01491, allocations: 8 kB / 271.5 MB, free: 2.355 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.344e-05/0.01497, allocations: 100.6 kB / 271.6 MB, free: 2.254 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01497, allocations: 0 / 271.6 MB, free: 2.254 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003693/0.01534, allocations: 123.7 kB / 271.7 MB, free: 2.133 MB / 250.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 7.603e-05/0.01542, allocations: 84.5 kB / 271.8 MB, free: 2.043 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000356/0.01577, allocations: 488.3 kB / 272.3 MB, free: 1.527 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.01578, allocations: 0 / 272.3 MB, free: 1.527 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.01598, allocations: 436.3 kB / 272.7 MB, free: 1.059 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.01618, allocations: 64.72 kB / 272.8 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008394/0.01702, allocations: 0.594 MB / 273.4 MB, free: 376 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.885e-05/0.01708, allocations: 104.6 kB / 273.5 MB, free: 252 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.697e-05/0.01714, allocations: 14.3 kB / 273.5 MB, free: 236 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.01725, allocations: 107.3 kB / 273.6 MB, free: 128 kB / 250.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01725, allocations: 4 kB / 273.6 MB, free: 124 kB / 250.7 MB Notification: Performance of Templates: time 0.006561/0.02382, allocations: 5.214 MB / 278.8 MB, free: 10.95 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 -s gbode -gbm=radauIIA3 -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: 2.702138653025031]