Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00116/0.00116, allocations: 175 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000858/0.0008577, allocations: 89.48 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003365, allocations: 16 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2775, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002978/0.2806, allocations: 2.52 MB / 377.6 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.2819, allocations: 0.6903 MB / 378.3 MB, free: 42.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001835/0.2821, allocations: 8 kB / 378.3 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.2823, allocations: 38.12 kB / 378.3 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.2824, allocations: 102.4 kB / 378.4 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.2827, allocations: 59.67 kB / 378.5 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.2831, allocations: 378.2 kB / 378.9 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.2833, allocations: 96.59 kB / 379 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002418/0.2835, allocations: 125.8 kB / 379.1 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.2837, allocations: 141.7 kB / 379.2 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.926e-05/0.2838, allocations: 17.78 kB / 379.2 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.381e-05/0.2838, allocations: 16.62 kB / 379.3 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.544e-05/0.2839, allocations: 55.81 kB / 379.3 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.284, allocations: 174 kB / 379.5 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.2843, allocations: 275.7 kB / 379.7 MB, free: 41.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2843, allocations: 5.5 kB / 379.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2843, allocations: 0 / 379.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.2843, allocations: 0 / 379.8 MB, free: 41.88 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.000914/0.2853, allocations: 0.5945 MB / 380.3 MB, free: 41.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.2853, allocations: 9.688 kB / 380.4 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.856e-05/0.2854, allocations: 40.8 kB / 380.4 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002814/0.2857, allocations: 277.6 kB / 380.7 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.2857, allocations: 19.62 kB / 380.7 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/0.2858, allocations: 26 kB / 380.7 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005455/0.2863, allocations: 272.7 kB / 381 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.2864, allocations: 0 / 381 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.2864, allocations: 12 kB / 381 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.2864, allocations: 6.438 kB / 381 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005156/0.2869, allocations: 234 kB / 381.2 MB, free: 40.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.2886, allocations: 0.9912 MB / 382.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000516/0.2891, allocations: 300.9 kB / 382.5 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/0.2894, allocations: 113.7 kB / 382.6 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.2894, allocations: 10.48 kB / 382.6 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.2894, allocations: 37.19 kB / 382.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.465e-06/0.2895, allocations: 0 / 382.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001252/0.2907, allocations: 0.5898 MB / 383.3 MB, free: 39.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.576e-05/0.2908, allocations: 54.31 kB / 383.3 MB, free: 39.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.291, allocations: 260.4 kB / 383.6 MB, free: 39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.291, allocations: 32.17 kB / 383.6 MB, free: 38.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/0.2911, allocations: 182.4 kB / 383.8 MB, free: 38.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.2912, allocations: 71.94 kB / 383.8 MB, free: 38.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.343e-05/0.2912, allocations: 5.344 kB / 383.9 MB, free: 38.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.471e-05/0.2913, allocations: 335.8 kB / 384.2 MB, free: 38.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.2915, allocations: 78.88 kB / 384.3 MB, free: 38.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.2917, allocations: 124.3 kB / 384.4 MB, free: 38.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/0.2921, allocations: 203.9 kB / 384.6 MB, free: 38.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2922, allocations: 4.812 kB / 384.6 MB, free: 38.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006447/0.2928, allocations: 337.4 kB / 384.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.2928, allocations: 5.656 kB / 384.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2928, allocations: 0 / 384.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.2931, allocations: 81.41 kB / 385 MB, free: 37.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.2933, allocations: 35.05 kB / 385 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.2951, allocations: 2.84 MB / 387.9 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.2954, allocations: 33.14 kB / 387.9 MB, free: 35.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.2954, allocations: 5.438 kB / 387.9 MB, free: 35.07 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001599/0.2956, allocations: 134 kB / 388 MB, free: 34.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.2957, allocations: 26.09 kB / 388.1 MB, free: 34.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.554e-05/0.2957, allocations: 43.11 kB / 388.1 MB, free: 34.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.2957, allocations: 2.156 kB / 388.1 MB, free: 34.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.2958, allocations: 6.188 kB / 388.1 MB, free: 34.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2958, allocations: 3.984 kB / 388.1 MB, free: 34.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.2968, allocations: 0.6908 MB / 388.8 MB, free: 34.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2968, allocations: 0 / 388.8 MB, free: 34.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.2969, allocations: 35.91 kB / 388.8 MB, free: 34.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001935/0.2971, allocations: 77.61 kB / 388.9 MB, free: 34.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.2972, allocations: 4 kB / 388.9 MB, free: 34.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001419/0.2986, allocations: 2.831 MB / 391.8 MB, free: 31.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2986, allocations: 0 / 391.8 MB, free: 31.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005397/0.2991, allocations: 393.7 kB / 392.1 MB, free: 30.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.597e-05/0.2992, allocations: 100.8 kB / 392.2 MB, free: 30.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.849e-05/0.2993, allocations: 8 kB / 392.2 MB, free: 30.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.2995, allocations: 39.97 kB / 392.3 MB, free: 30.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.569e-05/0.2996, allocations: 23.91 kB / 392.3 MB, free: 30.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.2996, allocations: 4 kB / 392.3 MB, free: 30.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001375/0.2998, allocations: 193.9 kB / 392.5 MB, free: 30.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2998, allocations: 0 / 392.5 MB, free: 30.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003813/0.3002, allocations: 95.78 kB / 392.6 MB, free: 30.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001268/0.3003, allocations: 99.25 kB / 392.7 MB, free: 30.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006619/0.301, allocations: 461.1 kB / 393.1 MB, free: 29.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.301, allocations: 0 / 393.1 MB, free: 29.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.3013, allocations: 361.4 kB / 393.5 MB, free: 29.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.3018, allocations: 56.41 kB / 393.5 MB, free: 29.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007307/0.3025, allocations: 0.6232 MB / 394.2 MB, free: 28.54 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000169/0.3027, allocations: 0.76 MB / 394.9 MB, free: 27.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.392e-05/0.3027, allocations: 23.42 kB / 395 MB, free: 27.72 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3028, allocations: 0 / 395 MB, free: 27.72 MB / 298.7 MB Notification: Performance of Templates: time 0.00598/0.3087, allocations: 5.561 MB / 400.5 MB, free: 22.17 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches