Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001381/0.001381, allocations: 110.9 kB / 17.74 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.001176/0.001176, allocations: 188.4 kB / 18.67 MB, free: 4.395 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.334/1.334, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 47.92 kB / 352 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.236, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003709/0.2398, allocations: 3.003 MB / 404.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2408, allocations: 0.6777 MB / 405.1 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.2409, allocations: 7.938 kB / 405.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001502/0.2411, allocations: 47.5 kB / 405.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001558/0.2413, allocations: 107 kB / 405.3 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.2415, allocations: 87.88 kB / 405.3 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003702/0.2419, allocations: 410.2 kB / 405.7 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.2421, allocations: 111.1 kB / 405.8 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.2423, allocations: 159.4 kB / 406 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.2425, allocations: 163.3 kB / 406.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.006e-05/0.2425, allocations: 28 kB / 406.2 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.592e-05/0.2426, allocations: 32 kB / 406.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.356e-05/0.2427, allocations: 79.75 kB / 406.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.2428, allocations: 175.1 kB / 406.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003313/0.2432, allocations: 387.7 kB / 406.9 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2432, allocations: 0 / 406.9 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2432, allocations: 4 kB / 406.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.2432, allocations: 0 / 406.9 MB, free: 3.387 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.0009125/0.2441, allocations: 0.6198 MB / 407.5 MB, free: 2.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.2441, allocations: 15.88 kB / 407.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.2442, allocations: 40.47 kB / 407.5 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.2446, allocations: 283.6 kB / 407.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.2446, allocations: 16.94 kB / 407.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/0.2446, allocations: 28.38 kB / 407.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/0.2452, allocations: 257.2 kB / 408.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.2452, allocations: 0 / 408.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.855e-05/0.2452, allocations: 12 kB / 408.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.2452, allocations: 8 kB / 408.1 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004694/0.2457, allocations: 218.1 kB / 408.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.2472, allocations: 0.9677 MB / 409.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.2477, allocations: 310.8 kB / 409.6 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.248, allocations: 108.8 kB / 409.7 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.248, allocations: 0 / 409.7 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.248, allocations: 38.56 kB / 409.7 MB, free: 300 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.032e-06/0.248, allocations: 0 / 409.7 MB, free: 300 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001257/0.2493, allocations: 0.5709 MB / 410.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.2493, allocations: 55.41 kB / 410.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.2496, allocations: 254.6 kB / 410.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.2496, allocations: 29.7 kB / 410.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.2497, allocations: 183.9 kB / 410.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.838e-05/0.2498, allocations: 75 kB / 410.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.062e-05/0.2499, allocations: 37.94 kB / 410.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.25, allocations: 338.8 kB / 411.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.2502, allocations: 80.42 kB / 411.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.2504, allocations: 108.1 kB / 411.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003783/0.2508, allocations: 190.4 kB / 411.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2508, allocations: 0 / 411.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006169/0.2514, allocations: 322.7 kB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.2514, allocations: 15.94 kB / 412 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.2514, allocations: 0 / 412 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002459/0.2517, allocations: 73.67 kB / 412 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.2519, allocations: 39.91 kB / 412.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002204/0.2541, allocations: 3.047 MB / 415.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.2543, allocations: 27.77 kB / 415.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.2543, allocations: 8.062 kB / 415.2 MB, free: 10.46 MB / 334.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.0001338/0.2545, allocations: 142 kB / 415.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.214e-05/0.2545, allocations: 27.66 kB / 415.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.704e-05/0.2546, allocations: 30.17 kB / 415.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2546, allocations: 4 kB / 415.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2546, allocations: 4 kB / 415.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2546, allocations: 3.984 kB / 415.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009511/0.2556, allocations: 0.6835 MB / 416.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2556, allocations: 0 / 416.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.2557, allocations: 27.97 kB / 416.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.2559, allocations: 81.61 kB / 416.2 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.2559, allocations: 0 / 416.2 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/0.258, allocations: 3.04 MB / 419.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.258, allocations: 0 / 419.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005877/0.2586, allocations: 388.5 kB / 419.6 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.122e-05/0.2587, allocations: 108.8 kB / 419.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.2587, allocations: 0 / 419.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.259, allocations: 35.97 kB / 419.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.289e-05/0.2591, allocations: 15.98 kB / 419.7 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.2591, allocations: 4 kB / 419.7 MB, free: 5.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.2593, allocations: 194 kB / 419.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2593, allocations: 0 / 419.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.2596, allocations: 91.84 kB / 420 MB, free: 5.199 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 (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.0001193/0.2598, allocations: 119.9 kB / 420.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007441/0.2605, allocations: 441.1 kB / 420.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2605, allocations: 0 / 420.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004148/0.261, allocations: 349.4 kB / 420.9 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003736/0.2613, allocations: 52.59 kB / 421 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007727/0.2621, allocations: 0.5179 MB / 421.5 MB, free: 3.652 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.2624, allocations: 0.7639 MB / 422.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.2625, allocations: 19.44 kB / 422.3 MB, free: 2.844 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2625, allocations: 0 / 422.3 MB, free: 2.844 MB / 334.1 MB Notification: Performance of Templates: time 0.006952/0.2695, allocations: 5.622 MB / 427.9 MB, free: 13.23 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches