Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001637/0.001637, allocations: 200.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008587/0.0008588, allocations: 93.69 kB / 299.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002746, allocations: 8 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2523, allocations: 51.42 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002365/0.2547, allocations: 2.572 MB / 414.6 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009908/0.2557, allocations: 0.9243 MB / 415.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.2559, allocations: 8 kB / 415.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.256, allocations: 35.69 kB / 415.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.2561, allocations: 95.17 kB / 415.7 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.2564, allocations: 83.92 kB / 415.8 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002938/0.2567, allocations: 390.2 kB / 416.1 MB, free: 21.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.2569, allocations: 91.64 kB / 416.2 MB, free: 21.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002071/0.2571, allocations: 139.4 kB / 416.4 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.2572, allocations: 151.3 kB / 416.5 MB, free: 21.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.193e-05/0.2573, allocations: 16 kB / 416.5 MB, free: 21.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.569e-05/0.2574, allocations: 23.98 kB / 416.6 MB, free: 21.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.181e-05/0.2574, allocations: 55.77 kB / 416.6 MB, free: 21.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.2575, allocations: 180.8 kB / 416.8 MB, free: 21.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.2578, allocations: 368 kB / 417.2 MB, free: 20.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.2578, allocations: 4 kB / 417.2 MB, free: 20.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2578, allocations: 0 / 417.2 MB, free: 20.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2578, allocations: 0 / 417.2 MB, free: 20.75 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008515/0.2587, allocations: 0.5926 MB / 417.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.2587, allocations: 8.031 kB / 417.8 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.2589, allocations: 48.55 kB / 417.8 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.2592, allocations: 279.5 kB / 418.1 MB, free: 19.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.2592, allocations: 20.88 kB / 418.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.2592, allocations: 32.38 kB / 418.1 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000445/0.2597, allocations: 265.2 kB / 418.4 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2597, allocations: 0 / 418.4 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.2597, allocations: 12 kB / 418.4 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2598, allocations: 4 kB / 418.4 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004275/0.2602, allocations: 234.1 kB / 418.6 MB, free: 19.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.2616, allocations: 0.9948 MB / 419.6 MB, free: 18.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004871/0.2621, allocations: 311.6 kB / 419.9 MB, free: 17.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.2623, allocations: 112.8 kB / 420 MB, free: 17.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.2623, allocations: 0 / 420 MB, free: 17.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.2624, allocations: 42.55 kB / 420.1 MB, free: 17.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.132e-06/0.2624, allocations: 4 kB / 420.1 MB, free: 17.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001144/0.2635, allocations: 0.5819 MB / 420.7 MB, free: 16.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.2636, allocations: 59.34 kB / 420.7 MB, free: 16.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.2638, allocations: 258.6 kB / 421 MB, free: 16.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2638, allocations: 29.7 kB / 421 MB, free: 16.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.78e-05/0.2639, allocations: 183.9 kB / 421.2 MB, free: 16.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.2639, allocations: 66.92 kB / 421.3 MB, free: 16.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.264, allocations: 8 kB / 421.3 MB, free: 16.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.03e-05/0.264, allocations: 334.8 kB / 421.6 MB, free: 16.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.2642, allocations: 88.36 kB / 421.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.2644, allocations: 116.1 kB / 421.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.2648, allocations: 203.8 kB / 422 MB, free: 15.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2648, allocations: 0 / 422 MB, free: 15.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005434/0.2653, allocations: 341.6 kB / 422.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2653, allocations: 4 kB / 422.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2654, allocations: 0 / 422.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002625/0.2656, allocations: 69.67 kB / 422.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.2658, allocations: 47.91 kB / 422.4 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.2675, allocations: 2.835 MB / 425.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.2677, allocations: 31.92 kB / 425.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.2677, allocations: 8 kB / 425.3 MB, free: 11.99 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 (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.0001083/0.2678, allocations: 141.7 kB / 425.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.2679, allocations: 23.72 kB / 425.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.624e-05/0.2679, allocations: 34.17 kB / 425.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2679, allocations: 0 / 425.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.2679, allocations: 7.938 kB / 425.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.2679, allocations: 0 / 425.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007928/0.2687, allocations: 0.6988 MB / 426.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2688, allocations: 0 / 426.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.2689, allocations: 23.98 kB / 426.2 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001577/0.269, allocations: 89.78 kB / 426.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.2691, allocations: 0 / 426.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/0.2705, allocations: 2.831 MB / 429.2 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2705, allocations: 4.125 kB / 429.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004908/0.271, allocations: 394.3 kB / 429.5 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.127e-05/0.2711, allocations: 108.8 kB / 429.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.2711, allocations: 0 / 429.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.2713, allocations: 35.98 kB / 429.7 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.145e-05/0.2714, allocations: 23.91 kB / 429.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.2714, allocations: 8 kB / 429.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001354/0.2716, allocations: 186 kB / 429.9 MB, free: 7.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2716, allocations: 0 / 429.9 MB, free: 7.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003309/0.2719, allocations: 95.84 kB / 430 MB, free: 6.926 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 (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.0001326/0.272, allocations: 111.2 kB / 430.1 MB, free: 6.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006547/0.2727, allocations: 462.4 kB / 430.6 MB, free: 6.332 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2727, allocations: 0 / 430.6 MB, free: 6.332 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003263/0.273, allocations: 361.3 kB / 430.9 MB, free: 5.953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.2735, allocations: 48.41 kB / 431 MB, free: 5.902 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007679/0.2742, allocations: 0.6303 MB / 431.6 MB, free: 5.246 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.2744, allocations: 0.7678 MB / 432.4 MB, free: 4.453 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.2745, allocations: 18.3 kB / 432.4 MB, free: 4.434 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.617e-05/0.2746, allocations: 19.44 kB / 432.4 MB, free: 4.414 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2746, allocations: 0 / 432.4 MB, free: 4.414 MB / 298.7 MB Notification: Performance of Templates: time 0.006795/0.2814, allocations: 3.432 MB / 435.8 MB, free: 0.9883 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches