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.001414/0.001414, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001612/0.001612, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.388/1.388, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 51.91 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2619, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003997/0.2659, allocations: 3.011 MB / 404.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.2671, allocations: 0.6777 MB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.2673, allocations: 11.94 kB / 405.1 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.2674, allocations: 55.44 kB / 405.2 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000174/0.2676, allocations: 95.12 kB / 405.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.2679, allocations: 91.81 kB / 405.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003829/0.2683, allocations: 410.2 kB / 405.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.2685, allocations: 103.1 kB / 405.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.2687, allocations: 155.4 kB / 406 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.2689, allocations: 167.3 kB / 406.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.069e-05/0.269, allocations: 32 kB / 406.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.65e-05/0.269, allocations: 32 kB / 406.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.113e-05/0.2691, allocations: 71.7 kB / 406.3 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.2692, allocations: 175.2 kB / 406.5 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.2696, allocations: 387.7 kB / 406.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2696, allocations: 0 / 406.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2696, allocations: 0 / 406.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2696, allocations: 0 / 406.8 MB, free: 3.41 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.0009185/0.2706, allocations: 0.6315 MB / 407.5 MB, free: 2.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2706, allocations: 11.89 kB / 407.5 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.615e-05/0.2707, allocations: 44.47 kB / 407.5 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.271, allocations: 275.6 kB / 407.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.271, allocations: 20.94 kB / 407.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.2711, allocations: 28.38 kB / 407.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00049/0.2716, allocations: 261.2 kB / 408.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2716, allocations: 0 / 408.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.2716, allocations: 12 kB / 408.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.2716, allocations: 12 kB / 408.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004582/0.2721, allocations: 214.1 kB / 408.3 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.2737, allocations: 0.9639 MB / 409.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.2742, allocations: 299.8 kB / 409.6 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.2744, allocations: 108.8 kB / 409.7 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.2745, allocations: 4 kB / 409.7 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.2745, allocations: 42.5 kB / 409.7 MB, free: 316 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.813e-06/0.2745, allocations: 0 / 409.7 MB, free: 316 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001314/0.2758, allocations: 0.5631 MB / 410.3 MB, free: 15.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.2759, allocations: 55.41 kB / 410.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.2761, allocations: 262.6 kB / 410.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.2762, allocations: 29.7 kB / 410.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.2763, allocations: 179.9 kB / 410.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.2764, allocations: 70.98 kB / 410.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.505e-05/0.2765, allocations: 49.94 kB / 410.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2766, allocations: 334.8 kB / 411.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.2768, allocations: 72.42 kB / 411.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.277, allocations: 112.1 kB / 411.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.2774, allocations: 190.4 kB / 411.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2774, allocations: 3.938 kB / 411.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006126/0.278, allocations: 330.8 kB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.278, allocations: 4 kB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.278, allocations: 0 / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002799/0.2783, allocations: 73.66 kB / 412 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.2785, allocations: 39.92 kB / 412.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/0.2809, allocations: 3.055 MB / 415.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.2811, allocations: 27.77 kB / 415.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2811, allocations: 4 kB / 415.2 MB, free: 10.48 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.0001393/0.2813, allocations: 137.8 kB / 415.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/0.2814, allocations: 27.66 kB / 415.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.023e-05/0.2814, allocations: 30.17 kB / 415.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2814, allocations: 4 kB / 415.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2814, allocations: 4.062 kB / 415.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.2814, allocations: 4 kB / 415.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009688/0.2824, allocations: 0.6834 MB / 416 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2824, allocations: 0 / 416 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.2826, allocations: 31.92 kB / 416.1 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001929/0.2828, allocations: 73.78 kB / 416.2 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.2828, allocations: 8 kB / 416.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002202/0.285, allocations: 3.04 MB / 419.2 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.285, allocations: 0 / 419.2 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005976/0.2856, allocations: 388.4 kB / 419.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.443e-05/0.2857, allocations: 100.8 kB / 419.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.2857, allocations: 4 kB / 419.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.286, allocations: 35.97 kB / 419.7 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/0.2861, allocations: 19.97 kB / 419.7 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.2861, allocations: 4 kB / 419.7 MB, free: 5.492 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001857/0.2863, allocations: 186 kB / 419.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2863, allocations: 3.938 kB / 419.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.2867, allocations: 95.84 kB / 420 MB, free: 5.211 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.0001282/0.2868, allocations: 119.8 kB / 420.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007433/0.2876, allocations: 441.1 kB / 420.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2876, allocations: 4.125 kB / 420.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004105/0.288, allocations: 349.2 kB / 420.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000394/0.2884, allocations: 52.55 kB / 421 MB, free: 4.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008495/0.2893, allocations: 0.5101 MB / 421.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.2896, allocations: 0.7639 MB / 422.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.994e-05/0.2897, allocations: 23.44 kB / 422.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2897, allocations: 0 / 422.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of Templates: time 0.007107/0.2968, allocations: 5.656 MB / 427.9 MB, free: 13.21 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