Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") [: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.0009899/0.0009899, allocations: 177.3 kB / 8.475 MB, free: 1.852 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.129/1.129, allocations: 205.2 MB / 214.1 MB, free: 5.156 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00095/0.00095, allocations: 87.28 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.08e-05/1.082e-05, allocations: 4 kB / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08051/0.08054, allocations: 47.58 MB / 362.6 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2369/0.3175, allocations: 78.3 MB / 440.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.3177, allocations: 79.27 kB / 440.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01492/0.3327, allocations: 5.414 MB / 446.3 MB, free: 10.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.3327, allocations: 7.594 kB / 446.4 MB, free: 10.06 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007366/0.3335, allocations: 0.5781 MB / 446.9 MB, free: 9.562 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.3335, allocations: 11.69 kB / 446.9 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.323e-05/0.3336, allocations: 31.19 kB / 447 MB, free: 9.547 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002733/0.3339, allocations: 265.6 kB / 447.2 MB, free: 9.312 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.3339, allocations: 7.859 kB / 447.2 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.3339, allocations: 11.53 kB / 447.3 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000263/0.3342, allocations: 159.5 kB / 447.4 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.3344, allocations: 162.6 kB / 447.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.3345, allocations: 0 / 447.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.3345, allocations: 3.812 kB / 447.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.3345, allocations: 7.688 kB / 447.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.3359, allocations: 0.8956 MB / 448.5 MB, free: 8.656 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.3362, allocations: 144.6 kB / 448.6 MB, free: 8.621 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.742e-05/0.3363, allocations: 53.36 kB / 448.7 MB, free: 8.609 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.3363, allocations: 3.812 kB / 448.7 MB, free: 8.609 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000143/0.3365, allocations: 129.2 kB / 448.8 MB, free: 8.516 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.3365, allocations: 0 / 448.8 MB, free: 8.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004769/0.337, allocations: 200 kB / 449 MB, free: 8.441 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.145e-05/0.337, allocations: 110.6 kB / 449.1 MB, free: 8.316 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.3372, allocations: 211.6 kB / 449.3 MB, free: 8.199 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.3372, allocations: 29.08 kB / 449.3 MB, free: 8.168 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.3373, allocations: 153.9 kB / 449.5 MB, free: 8.039 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.3373, allocations: 50.2 kB / 449.5 MB, free: 8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-05/0.3373, allocations: 0 / 449.5 MB, free: 8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.871e-05/0.3374, allocations: 332.8 kB / 449.9 MB, free: 7.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.123e-05/0.3375, allocations: 46.25 kB / 449.9 MB, free: 7.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.3376, allocations: 114.7 kB / 450 MB, free: 7.602 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.617e-05/0.3377, allocations: 59.05 kB / 450.1 MB, free: 7.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3377, allocations: 0 / 450.1 MB, free: 7.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004553/0.3381, allocations: 271.4 kB / 450.3 MB, free: 7.492 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.885e-05/0.3382, allocations: 0.6148 MB / 451 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3382, allocations: 0 / 451 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.3384, allocations: 43.66 kB / 451 MB, free: 6.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.3387, allocations: 58.58 kB / 451.1 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003034/0.339, allocations: 0.5816 MB / 451.6 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.3393, allocations: 54.86 kB / 451.7 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.3393, allocations: 11.75 kB / 451.7 MB, free: 6.262 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.362e-06/0.3393, allocations: 11.69 kB / 451.7 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002737/0.3396, allocations: 159.3 kB / 451.9 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.224e-06/0.3396, allocations: 192 / 451.9 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.056e-05/0.3397, allocations: 38.62 kB / 451.9 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.3399, allocations: 46.55 kB / 452 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008591/0.3408, allocations: 1.473 MB / 453.4 MB, free: 4.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.3411, allocations: 42.72 kB / 453.5 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.3411, allocations: 14.78 kB / 453.5 MB, free: 4.832 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001084/0.3412, allocations: 117.2 kB / 453.6 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-05/0.3412, allocations: 19.38 kB / 453.6 MB, free: 4.703 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.969e-05/0.3413, allocations: 20.34 kB / 453.6 MB, free: 4.703 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.3413, allocations: 0 / 453.6 MB, free: 4.703 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.3413, allocations: 3.984 kB / 453.6 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3413, allocations: 3.688 kB / 453.6 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.3415, allocations: 260.5 kB / 453.9 MB, free: 4.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3415, allocations: 4 kB / 453.9 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.3417, allocations: 34.47 kB / 453.9 MB, free: 4.477 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/0.3418, allocations: 46.16 kB / 454 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.3418, allocations: 0 / 454 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.3428, allocations: 1.448 MB / 455.4 MB, free: 19.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3429, allocations: 0 / 455.4 MB, free: 19.18 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003895/0.3432, allocations: 237.2 kB / 455.7 MB, free: 19.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.143e-05/0.3433, allocations: 99.11 kB / 455.8 MB, free: 18.96 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.3434, allocations: 0 / 455.8 MB, free: 18.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000254/0.3436, allocations: 50.64 kB / 455.8 MB, free: 18.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.593e-05/0.3437, allocations: 25.11 kB / 455.8 MB, free: 18.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.3437, allocations: 3.875 kB / 455.8 MB, free: 18.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001236/0.3439, allocations: 164.7 kB / 456 MB, free: 18.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004454/0.3443, allocations: 107.9 kB / 456.1 MB, free: 18.83 MB / 330.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001475/0.3445, allocations: 104.7 kB / 456.2 MB, free: 18.74 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005715/0.345, allocations: 391.5 kB / 456.6 MB, free: 18.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3451, allocations: 3.938 kB / 456.6 MB, free: 18.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.3453, allocations: 174.5 kB / 456.8 MB, free: 18.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.3455, allocations: 41.77 kB / 456.8 MB, free: 18.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005869/0.3461, allocations: 265.4 kB / 457.1 MB, free: 18.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.3464, allocations: 0.7787 MB / 457.8 MB, free: 17.52 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3465, allocations: 0 / 457.8 MB, free: 17.52 MB / 330.7 MB Notification: Performance of Templates: time 0.006811/0.3533, allocations: 4.232 MB / 462.1 MB, free: 15.42 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmp/InvertingAmp.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches