Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009648/0.0009648, allocations: 177.1 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008365/0.0008364, allocations: 98.03 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.917e-05, allocations: 8 kB / 337.1 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09656, allocations: 50.42 MB / 387.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3172/0.4138, allocations: 80.44 MB / 467.9 MB, free: 14.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002393/0.4141, allocations: 79.95 kB / 468 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01797/0.4321, allocations: 6.393 MB / 474.4 MB, free: 7.918 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.4322, allocations: 0 / 474.4 MB, free: 7.918 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.4322, allocations: 4 kB / 474.4 MB, free: 7.914 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009473/0.4331, allocations: 0.5847 MB / 475 MB, free: 7.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.4332, allocations: 16.02 kB / 475 MB, free: 7.266 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.4333, allocations: 35.62 kB / 475 MB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.4336, allocations: 291 kB / 475.3 MB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.4337, allocations: 11.98 kB / 475.3 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.46e-05/0.4337, allocations: 16 kB / 475.3 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003316/0.4341, allocations: 177.5 kB / 475.5 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.4345, allocations: 250.5 kB / 475.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.4345, allocations: 0 / 475.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.4345, allocations: 0 / 475.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.4345, allocations: 4 kB / 475.8 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.4363, allocations: 1.134 MB / 476.9 MB, free: 5.242 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.4366, allocations: 146.6 kB / 477 MB, free: 5.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.62e-05/0.4367, allocations: 60.84 kB / 477.1 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.4368, allocations: 7.984 kB / 477.1 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002124/0.437, allocations: 133.9 kB / 477.2 MB, free: 4.867 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.302e-06/0.437, allocations: 0 / 477.2 MB, free: 4.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006112/0.4376, allocations: 218.3 kB / 477.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.4377, allocations: 106.8 kB / 477.6 MB, free: 4.516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.4379, allocations: 234 kB / 477.8 MB, free: 4.281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.4379, allocations: 29.64 kB / 477.8 MB, free: 4.246 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.438, allocations: 203.7 kB / 478 MB, free: 4.039 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.851e-05/0.4381, allocations: 43.45 kB / 478.1 MB, free: 3.996 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.4381, allocations: 0 / 478.1 MB, free: 3.996 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.92e-05/0.4382, allocations: 334.8 kB / 478.4 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.4383, allocations: 60.47 kB / 478.4 MB, free: 3.598 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.4385, allocations: 144.7 kB / 478.6 MB, free: 3.414 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.4386, allocations: 70.39 kB / 478.7 MB, free: 3.348 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4386, allocations: 0 / 478.7 MB, free: 3.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006673/0.4393, allocations: 318.1 kB / 479 MB, free: 3.027 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.4394, allocations: 39.06 kB / 479 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4394, allocations: 0 / 479 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001993/0.4396, allocations: 60.89 kB / 479.1 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.4398, allocations: 47.97 kB / 479.1 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.4412, allocations: 1.483 MB / 480.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/0.4416, allocations: 47.81 kB / 480.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.4416, allocations: 16.22 kB / 480.7 MB, free: 1.219 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gain.opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 21 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001354/0.4418, allocations: 117.8 kB / 480.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.4418, allocations: 27.66 kB / 480.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.528e-05/0.4418, allocations: 29.91 kB / 480.8 MB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.4419, allocations: 0 / 480.8 MB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.4419, allocations: 4 kB / 480.8 MB, free: 1.035 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.4419, allocations: 3.984 kB / 480.8 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.4421, allocations: 270 kB / 481.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4421, allocations: 3.984 kB / 481.1 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.4423, allocations: 31.92 kB / 481.1 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/0.4424, allocations: 56.77 kB / 481.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.4425, allocations: 0 / 481.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.4438, allocations: 1.483 MB / 482.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4438, allocations: 3.953 kB / 482.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005372/0.4443, allocations: 261.6 kB / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.878e-05/0.4444, allocations: 96.83 kB / 483 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.4444, allocations: 7.984 kB / 483 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.4447, allocations: 39.97 kB / 483.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.194e-05/0.4448, allocations: 19.97 kB / 483.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.4448, allocations: 4 kB / 483.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001496/0.445, allocations: 181.9 kB / 483.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.445, allocations: 0 / 483.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003297/0.4453, allocations: 75.83 kB / 483.3 MB, free: 14.32 MB / 362.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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00014/0.4455, allocations: 107.2 kB / 483.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004537/0.4459, allocations: 326.3 kB / 483.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.4459, allocations: 0 / 483.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002081/0.4462, allocations: 181.7 kB / 483.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.4464, allocations: 47.27 kB / 484 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005295/0.447, allocations: 278.4 kB / 484.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.4472, allocations: 0.7638 MB / 485 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.4474, allocations: 22.08 kB / 485 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.017e-05/0.4474, allocations: 19.44 kB / 485.1 MB, free: 12.51 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4474, allocations: 0 / 485.1 MB, free: 12.51 MB / 362.7 MB Notification: Performance of Templates: time 0.00624/0.4537, allocations: 3.296 MB / 488.4 MB, free: 9.25 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches