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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 186.5 kB / 17.27 MB, free: 4.496 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 94.23 kB / 291.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 35.95 kB / 350 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4125/0.4138, allocations: 49.44 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004526/0.4184, allocations: 2.179 MB / 401.6 MB, free: 31.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.4198, allocations: 0.5406 MB / 402.2 MB, free: 30.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.4201, allocations: 0 / 402.2 MB, free: 30.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.4203, allocations: 22.5 kB / 402.2 MB, free: 30.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.4204, allocations: 35.7 kB / 402.2 MB, free: 30.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.4208, allocations: 27.97 kB / 402.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002765/0.421, allocations: 155.2 kB / 402.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.4212, allocations: 43.69 kB / 402.5 MB, free: 30.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.4214, allocations: 59.72 kB / 402.5 MB, free: 30.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.4216, allocations: 67.69 kB / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.704e-05/0.4217, allocations: 16 kB / 402.6 MB, free: 30.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.4218, allocations: 8 kB / 402.6 MB, free: 30.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.127e-05/0.4219, allocations: 23.92 kB / 402.6 MB, free: 30.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.422, allocations: 63.67 kB / 402.7 MB, free: 30.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.4222, allocations: 161 kB / 402.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.4222, allocations: 3.938 kB / 402.9 MB, free: 29.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4223, allocations: 3.938 kB / 402.9 MB, free: 29.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.892e-06/0.4223, allocations: 4 kB / 402.9 MB, free: 29.93 MB / 298.7 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.0009069/0.4232, allocations: 439.2 kB / 403.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/0.4233, allocations: 8.031 kB / 403.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.4234, allocations: 16.75 kB / 403.3 MB, free: 29.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.4237, allocations: 204.1 kB / 403.5 MB, free: 29.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.4237, allocations: 12.61 kB / 403.5 MB, free: 29.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.561e-05/0.4238, allocations: 12.36 kB / 403.5 MB, free: 29.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003759/0.4242, allocations: 125.4 kB / 403.7 MB, free: 29.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.4242, allocations: 0 / 403.7 MB, free: 29.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.4242, allocations: 4 kB / 403.7 MB, free: 29.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.4242, allocations: 4 kB / 403.7 MB, free: 29.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.4245, allocations: 84.66 kB / 403.8 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/0.4254, allocations: 0.6018 MB / 404.4 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.4258, allocations: 82.56 kB / 404.4 MB, free: 28.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.394e-05/0.4259, allocations: 36.91 kB / 404.5 MB, free: 28.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.4259, allocations: 0 / 404.5 MB, free: 28.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.4259, allocations: 34.56 kB / 404.5 MB, free: 28.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.223e-06/0.4259, allocations: 0 / 404.5 MB, free: 28.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0008269/0.4268, allocations: 255.4 kB / 404.8 MB, free: 27.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.4268, allocations: 63.34 kB / 404.8 MB, free: 27.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.427, allocations: 145.7 kB / 405 MB, free: 27.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.427, allocations: 29.7 kB / 405 MB, free: 27.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.5e-05/0.4271, allocations: 124 kB / 405.1 MB, free: 27.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.4271, allocations: 19.72 kB / 405.1 MB, free: 27.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.276e-05/0.4272, allocations: 17.72 kB / 405.2 MB, free: 27.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.241e-05/0.4273, allocations: 322.8 kB / 405.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.771e-05/0.4274, allocations: 27.92 kB / 405.5 MB, free: 27.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.692e-05/0.4275, allocations: 42.56 kB / 405.5 MB, free: 26.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.4276, allocations: 66.55 kB / 405.6 MB, free: 26.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.4276, allocations: 3.938 kB / 405.6 MB, free: 26.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003481/0.428, allocations: 142.3 kB / 405.7 MB, free: 26.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.428, allocations: 4 kB / 405.7 MB, free: 26.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.4281, allocations: 0 / 405.7 MB, free: 26.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.4283, allocations: 36.84 kB / 405.8 MB, free: 26.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.321e-05/0.4284, allocations: 8.172 kB / 405.8 MB, free: 26.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/0.4301, allocations: 1.533 MB / 407.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.85e-05/0.4302, allocations: 15.91 kB / 407.3 MB, free: 25.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.4302, allocations: 4 kB / 407.3 MB, free: 25.02 MB / 298.7 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.0001198/0.4304, allocations: 121.8 kB / 407.5 MB, free: 24.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/0.4304, allocations: 11.89 kB / 407.5 MB, free: 24.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.181e-05/0.4305, allocations: 16.72 kB / 407.5 MB, free: 24.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.4305, allocations: 3.938 kB / 407.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4305, allocations: 0 / 407.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4305, allocations: 0 / 407.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.4308, allocations: 209.6 kB / 407.7 MB, free: 24.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.4308, allocations: 4 kB / 407.7 MB, free: 24.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-05/0.4308, allocations: 7.984 kB / 407.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001496/0.431, allocations: 32.84 kB / 407.7 MB, free: 24.56 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.431, allocations: 0 / 407.7 MB, free: 24.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.4323, allocations: 1.514 MB / 409.3 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4323, allocations: 3.938 kB / 409.3 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00058/0.4329, allocations: 0.7988 MB / 410.1 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.433, allocations: 81.02 kB / 410.1 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.433, allocations: 0 / 410.1 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.4332, allocations: 7.984 kB / 410.1 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.4332, allocations: 8 kB / 410.2 MB, free: 21.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.178e-06/0.4333, allocations: 4 kB / 410.2 MB, free: 21.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.505e-05/0.4333, allocations: 114.2 kB / 410.3 MB, free: 21.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4334, allocations: 0 / 410.3 MB, free: 21.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006919/0.4341, allocations: 39.91 kB / 410.3 MB, free: 21.79 MB / 298.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: 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.0001908/0.4343, allocations: 99.19 kB / 410.4 MB, free: 21.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005609/0.4348, allocations: 194.6 kB / 410.6 MB, free: 21.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4349, allocations: 4.125 kB / 410.6 MB, free: 21.47 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002339/0.4351, allocations: 150.6 kB / 410.7 MB, free: 21.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.4355, allocations: 12.78 kB / 410.8 MB, free: 21.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008281/0.4364, allocations: 459.5 kB / 411.2 MB, free: 20.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.4366, allocations: 0.7121 MB / 411.9 MB, free: 20.08 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.426e-05/0.4367, allocations: 4.375 kB / 411.9 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.152e-05/0.4367, allocations: 11.44 kB / 411.9 MB, free: 20.06 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.4367, allocations: 0 / 411.9 MB, free: 20.06 MB / 298.7 MB Notification: Performance of Templates: time 0.005519/0.4423, allocations: 1.421 MB / 413.4 MB, free: 18.65 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches