Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 114.3 kB / 17.07 MB, free: 6.016 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.001682/0.001682, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 43.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4353/0.4371, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003774/0.4409, allocations: 2.143 MB / 402.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.442, allocations: 0.5416 MB / 403.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.749e-05/0.4421, allocations: 4 kB / 403.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.4423, allocations: 19.78 kB / 403.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.676e-05/0.4424, allocations: 47.56 kB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.4426, allocations: 39.89 kB / 403.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.4429, allocations: 147.3 kB / 403.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.4431, allocations: 69.44 kB / 403.7 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.4432, allocations: 63.73 kB / 403.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.4433, allocations: 67.69 kB / 403.9 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.4434, allocations: 12 kB / 403.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.594e-05/0.4435, allocations: 23.94 kB / 403.9 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.53e-05/0.4435, allocations: 27.91 kB / 403.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.842e-05/0.4436, allocations: 71.67 kB / 404 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.4439, allocations: 163.2 kB / 404.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.4439, allocations: 0 / 404.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4439, allocations: 0 / 404.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.4439, allocations: 0 / 404.2 MB, free: 5.434 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006854/0.4446, allocations: 443 kB / 404.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.4447, allocations: 12.03 kB / 404.6 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.4449, allocations: 16.88 kB / 404.6 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002935/0.4452, allocations: 204.1 kB / 404.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.4452, allocations: 12.61 kB / 404.8 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.4452, allocations: 16.36 kB / 404.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.4455, allocations: 116.5 kB / 405 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.4456, allocations: 3.984 kB / 405 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.4456, allocations: 8 kB / 405 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.4456, allocations: 0 / 405 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.4458, allocations: 84.59 kB / 405 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.4469, allocations: 0.6058 MB / 405.7 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.4472, allocations: 82.56 kB / 405.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.632e-05/0.4473, allocations: 32.97 kB / 405.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.4474, allocations: 3.938 kB / 405.8 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.4474, allocations: 42.56 kB / 405.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.4474, allocations: 0 / 405.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007704/0.4482, allocations: 255.4 kB / 406.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.4482, allocations: 55.34 kB / 406.1 MB, free: 3.234 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.4484, allocations: 148.4 kB / 406.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.4484, allocations: 25.7 kB / 406.3 MB, free: 3.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.4486, allocations: 132.1 kB / 406.4 MB, free: 2.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.4486, allocations: 19.84 kB / 406.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.865e-05/0.4486, allocations: 21.72 kB / 406.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.4488, allocations: 322.8 kB / 406.8 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.892e-05/0.4489, allocations: 23.98 kB / 406.8 MB, free: 2.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.885e-05/0.449, allocations: 42.81 kB / 406.8 MB, free: 2.469 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.4492, allocations: 66.5 kB / 406.9 MB, free: 2.395 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4492, allocations: 8 kB / 406.9 MB, free: 2.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002984/0.4495, allocations: 142.3 kB / 407 MB, free: 2.238 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.4495, allocations: 6.344 kB / 407.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.4495, allocations: 0 / 407.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002273/0.4498, allocations: 40.83 kB / 407.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.807e-05/0.4498, allocations: 7.984 kB / 407.1 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/0.4517, allocations: 1.697 MB / 408.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.653e-05/0.4518, allocations: 4 kB / 408.8 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.4518, allocations: 0 / 408.8 MB, free: 348 kB / 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.4519, allocations: 125.8 kB / 408.9 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.4519, allocations: 11.89 kB / 408.9 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.405e-05/0.452, allocations: 20.77 kB / 409 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.452, allocations: 0 / 409 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.452, allocations: 0 / 409 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.452, allocations: 128 / 409 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003294/0.4523, allocations: 225.5 kB / 409.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4523, allocations: 0 / 409.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.761e-05/0.4524, allocations: 7.938 kB / 409.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001189/0.4525, allocations: 36.83 kB / 409.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.4525, allocations: 4.188 kB / 409.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.4539, allocations: 1.678 MB / 410.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4539, allocations: 3.938 kB / 410.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003079/0.4542, allocations: 216.1 kB / 411.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/0.4543, allocations: 93.12 kB / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.4543, allocations: 8 kB / 411.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.4544, allocations: 8.062 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.856e-05/0.4545, allocations: 7.984 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.4545, allocations: 4 kB / 411.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.863e-05/0.4546, allocations: 103.3 kB / 411.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4546, allocations: 0 / 411.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003625/0.455, allocations: 39.95 kB / 411.4 MB, free: 13.53 MB / 334.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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001667/0.4551, allocations: 105.2 kB / 411.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004311/0.4556, allocations: 190.6 kB / 411.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.4556, allocations: 0 / 411.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.4558, allocations: 154.6 kB / 411.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.4561, allocations: 11.94 kB / 411.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007137/0.4569, allocations: 299.8 kB / 412.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.4574, allocations: 0.7041 MB / 412.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.806e-05/0.4574, allocations: 12.42 kB / 412.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.4575, allocations: 11.38 kB / 412.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4575, allocations: 0 / 412.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of Templates: time 0.005128/0.4626, allocations: 1.515 MB / 414.4 MB, free: 10.46 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches