Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 110.5 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001629/0.00163, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 51.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.114, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004889/0.1189, allocations: 2.956 MB / 378.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.1205, allocations: 0.733 MB / 378.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000247/0.1207, allocations: 4 kB / 378.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.121, allocations: 51.44 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.1212, allocations: 103 kB / 379 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002992/0.1216, allocations: 91.84 kB / 379.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005422/0.1221, allocations: 418 kB / 379.5 MB, free: 196 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002479/0.1224, allocations: 111.1 kB / 379.6 MB, free: 84 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2195/0.3419, allocations: 138.6 kB / 379.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.3423, allocations: 164 kB / 379.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.124e-05/0.3424, allocations: 31.62 kB / 379.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.657e-05/0.3425, allocations: 33.03 kB / 380 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.462e-05/0.3425, allocations: 75.38 kB / 380 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.3427, allocations: 174.5 kB / 380.2 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005971/0.3433, allocations: 382.1 kB / 380.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3434, allocations: 2.125 kB / 380.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3434, allocations: 3.938 kB / 380.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.3434, allocations: 0 / 380.6 MB, free: 9.738 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001046/0.3444, allocations: 0.6431 MB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.3445, allocations: 13.62 kB / 381.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.606e-05/0.3446, allocations: 40.92 kB / 381.3 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004587/0.3451, allocations: 289.3 kB / 381.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/0.3451, allocations: 20.61 kB / 381.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.3452, allocations: 24.66 kB / 381.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006371/0.3458, allocations: 257.5 kB / 381.9 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.3458, allocations: 6.047 kB / 381.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.3459, allocations: 13.78 kB / 381.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.3459, allocations: 7.625 kB / 381.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005975/0.3465, allocations: 215.2 kB / 382.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.3483, allocations: 0.9682 MB / 383.1 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006059/0.3489, allocations: 299.3 kB / 383.4 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.3492, allocations: 110 kB / 383.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.3492, allocations: 2.562 kB / 383.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.3493, allocations: 37.69 kB / 383.5 MB, free: 8.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.3493, allocations: 3.312 kB / 383.5 MB, free: 8.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001337/0.3506, allocations: 0.5554 MB / 384.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.3507, allocations: 58.06 kB / 384.1 MB, free: 8.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002903/0.351, allocations: 258 kB / 384.4 MB, free: 7.957 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.351, allocations: 31.42 kB / 384.4 MB, free: 7.926 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.3511, allocations: 180.8 kB / 384.6 MB, free: 7.805 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.294e-05/0.3512, allocations: 83.09 kB / 384.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.393e-05/0.3513, allocations: 50.95 kB / 384.7 MB, free: 7.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.507e-05/0.3514, allocations: 332.8 kB / 385 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.3516, allocations: 77.45 kB / 385.1 MB, free: 7.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.3518, allocations: 109 kB / 385.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004011/0.3522, allocations: 193.9 kB / 385.4 MB, free: 7.355 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3522, allocations: 1.375 kB / 385.4 MB, free: 7.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006426/0.3529, allocations: 323.1 kB / 385.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.3529, allocations: 6.031 kB / 385.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3529, allocations: 1.531 kB / 385.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003033/0.3532, allocations: 77.59 kB / 385.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.3534, allocations: 44.67 kB / 385.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001901/0.3553, allocations: 3.047 MB / 388.9 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.3556, allocations: 31.36 kB / 388.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.3556, allocations: 11.05 kB / 388.9 MB, free: 4.258 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.3557, allocations: 134.9 kB / 389.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.75e-05/0.3558, allocations: 37.41 kB / 389.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.133e-05/0.3558, allocations: 28.06 kB / 389.1 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.3559, allocations: 6.781 kB / 389.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.3559, allocations: 1.375 kB / 389.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3559, allocations: 1.406 kB / 389.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.3569, allocations: 0.6848 MB / 389.8 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3569, allocations: 0 / 389.8 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.357, allocations: 28.97 kB / 389.9 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001858/0.3572, allocations: 74.44 kB / 389.9 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.3573, allocations: 4 kB / 389.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.3593, allocations: 3.043 MB / 393 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3593, allocations: 0.9844 kB / 393 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006517/0.3599, allocations: 382.6 kB / 393.3 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-05/0.36, allocations: 107.4 kB / 393.5 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.36, allocations: 6.344 kB / 393.5 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.3603, allocations: 34 kB / 393.5 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.125e-05/0.3604, allocations: 23.62 kB / 393.5 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.3604, allocations: 9.562 kB / 393.5 MB, free: 276 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.3606, allocations: 186.4 kB / 393.7 MB, free: 164 kB / 318.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3606, allocations: 0 / 393.7 MB, free: 164 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004486/0.3611, allocations: 99.27 kB / 393.8 MB, free: 140 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001543/0.3612, allocations: 106 kB / 393.9 MB, free: 40 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009575/0.3622, allocations: 457.5 kB / 394.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3622, allocations: 0 / 394.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004999/0.3627, allocations: 345.2 kB / 394.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.3632, allocations: 47.25 kB / 394.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009714/0.3641, allocations: 0.4986 MB / 395.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.3646, allocations: 0.7643 MB / 396 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001274/0.3647, allocations: 22.59 kB / 396 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.674e-05/0.3648, allocations: 18.84 kB / 396 MB, free: 14.44 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3648, allocations: 1.188 kB / 396 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Templates: time 0.009045/0.3738, allocations: 3.758 MB / 399.8 MB, free: 14.17 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches