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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002549/0.002555, allocations: 177 kB / 8.151 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001339/0.001339, allocations: 95.5 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.267e-05/1.281e-05, allocations: 4 kB / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2355, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1172/0.3528, allocations: 76.63 MB / 438.5 MB, free: 9.441 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.3531, allocations: 68.47 kB / 438.5 MB, free: 9.375 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02123/0.3744, allocations: 4.655 MB / 443.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.3744, allocations: 8.562 kB / 443.2 MB, free: 4.746 MB / 330.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.001287/0.3757, allocations: 0.5685 MB / 443.8 MB, free: 4.133 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3758, allocations: 8.031 kB / 443.8 MB, free: 4.125 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.3759, allocations: 39.53 kB / 443.8 MB, free: 4.086 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004889/0.3764, allocations: 267.9 kB / 444.1 MB, free: 3.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.3764, allocations: 8 kB / 444.1 MB, free: 3.777 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.732e-05/0.3765, allocations: 17.78 kB / 444.1 MB, free: 3.762 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005742/0.3771, allocations: 161.3 kB / 444.3 MB, free: 3.605 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006124/0.3777, allocations: 205.2 kB / 444.5 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.3777, allocations: 0 / 444.5 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.061e-05/0.3778, allocations: 0 / 444.5 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.3778, allocations: 12 kB / 444.5 MB, free: 3.383 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00282/0.3806, allocations: 0.9364 MB / 445.4 MB, free: 2.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005112/0.3812, allocations: 163.1 kB / 445.6 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003359/0.3816, allocations: 97.72 kB / 445.7 MB, free: 2.121 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.3816, allocations: 4.188 kB / 445.7 MB, free: 2.117 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.3816, allocations: 38.75 kB / 445.7 MB, free: 2.07 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.615e-06/0.3817, allocations: 0 / 445.7 MB, free: 2.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008042/0.3825, allocations: 221.9 kB / 445.9 MB, free: 1.844 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.3825, allocations: 59.28 kB / 446 MB, free: 1.773 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.3829, allocations: 204.2 kB / 446.2 MB, free: 1.566 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.3829, allocations: 25.7 kB / 446.2 MB, free: 1.535 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.3831, allocations: 230.3 kB / 446.4 MB, free: 1.309 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.917e-05/0.3831, allocations: 66.48 kB / 446.5 MB, free: 1.246 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.468e-05/0.3832, allocations: 0 / 446.5 MB, free: 1.246 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3833, allocations: 322.8 kB / 446.8 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.3835, allocations: 48.47 kB / 446.9 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.3837, allocations: 87.27 kB / 446.9 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.384, allocations: 63.97 kB / 447 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.384, allocations: 0 / 447 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007706/0.3848, allocations: 240.5 kB / 447.2 MB, free: 480 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.3848, allocations: 8 kB / 447.2 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3848, allocations: 8.062 kB / 447.3 MB, free: 464 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/0.3852, allocations: 61.67 kB / 447.3 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004249/0.3856, allocations: 47.92 kB / 447.4 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003237/0.3888, allocations: 2.686 MB / 450 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003021/0.3892, allocations: 23.83 kB / 450.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.3892, allocations: 8.062 kB / 450.1 MB, free: 13.39 MB / 346.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 () * 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.0001263/0.3894, allocations: 33.67 kB / 450.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.3895, allocations: 27.72 kB / 450.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-05/0.3896, allocations: 30.03 kB / 450.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3896, allocations: 0 / 450.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.3896, allocations: 7.938 kB / 450.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3896, allocations: 0 / 450.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.3909, allocations: 0.5823 MB / 450.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.3909, allocations: 0 / 450.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/0.3912, allocations: 31.97 kB / 450.8 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003572/0.3916, allocations: 77.61 kB / 450.9 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.3916, allocations: 0 / 450.9 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003172/0.3948, allocations: 2.68 MB / 453.5 MB, free: 9.641 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/0.3949, allocations: 4 kB / 453.5 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007629/0.3957, allocations: 330.7 kB / 453.9 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.3958, allocations: 104.8 kB / 454 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.443e-05/0.3958, allocations: 7.906 kB / 454 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005022/0.3964, allocations: 31.98 kB / 454 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.3964, allocations: 15.91 kB / 454 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.3965, allocations: 8 kB / 454 MB, free: 9.109 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002404/0.3967, allocations: 164.5 kB / 454.2 MB, free: 8.945 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000508/0.3972, allocations: 79.84 kB / 454.3 MB, free: 8.867 MB / 346.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 () * 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.0001768/0.3974, allocations: 99.72 kB / 454.4 MB, free: 8.762 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008508/0.3983, allocations: 367.7 kB / 454.7 MB, free: 8.387 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3983, allocations: 128 / 454.7 MB, free: 8.387 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005185/0.3988, allocations: 295.5 kB / 455 MB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/0.3993, allocations: 32 kB / 455 MB, free: 8.051 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.4003, allocations: 352 kB / 455.4 MB, free: 7.688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000518/0.4009, allocations: 0.7865 MB / 456.2 MB, free: 6.875 MB / 346.7 MB Notification: Performance of SimCode: time 1.323e-06/0.4009, allocations: 0 / 456.2 MB, free: 6.875 MB / 346.7 MB Notification: Performance of Templates: time 0.01122/0.4121, allocations: 5.398 MB / 461.6 MB, free: 1.488 MB / 346.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/jenkins1/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