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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001148, allocations: 105.8 kB / 16.92 MB, free: 5.781 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.001255/0.001255, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.488/1.488, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 45.55 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1392, allocations: 49.44 MB / 350.1 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.005232/0.1445, allocations: 2.924 MB / 353 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.1462, allocations: 0.7363 MB / 353.7 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003628/0.1466, allocations: 7.938 kB / 353.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.1469, allocations: 47.56 kB / 353.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003687/0.1473, allocations: 103.1 kB / 353.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.1477, allocations: 115.8 kB / 354 MB, free: 484 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005856/0.1483, allocations: 414.5 kB / 354.4 MB, free: 68 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003171/0.1486, allocations: 131.2 kB / 354.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003512/0.149, allocations: 159.3 kB / 354.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.1493, allocations: 167.3 kB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.353e-05/0.1494, allocations: 43.94 kB / 354.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.616e-05/0.1495, allocations: 40 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.211e-05/0.1496, allocations: 79.8 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002392/0.1499, allocations: 179.1 kB / 355.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005324/0.1504, allocations: 446.8 kB / 355.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1504, allocations: 8 kB / 355.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1504, allocations: 0 / 355.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.1504, allocations: 0 / 355.6 MB, free: 14.84 MB / 302.1 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.001475/0.1519, allocations: 0.673 MB / 356.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.152, allocations: 19.83 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.1521, allocations: 32.56 kB / 356.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.1525, allocations: 299.6 kB / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.1526, allocations: 16.94 kB / 356.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.1526, allocations: 24.38 kB / 356.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008292/0.1534, allocations: 335.9 kB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.1535, allocations: 0 / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.1535, allocations: 8 kB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.1535, allocations: 8 kB / 357 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008809/0.1544, allocations: 286.1 kB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.1568, allocations: 1.154 MB / 358.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.1578, allocations: 258.5 kB / 358.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003875/0.1582, allocations: 100.8 kB / 358.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.868e-05/0.1583, allocations: 4 kB / 358.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006294/0.1589, allocations: 178.7 kB / 359 MB, free: 11.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.445e-06/0.1589, allocations: 0 / 359 MB, free: 11.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002589/0.1615, allocations: 0.6688 MB / 359.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.717e-05/0.1616, allocations: 102.8 kB / 359.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004209/0.1621, allocations: 286.6 kB / 360 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.281e-05/0.1621, allocations: 29.7 kB / 360.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.1623, allocations: 199.6 kB / 360.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.783e-05/0.1624, allocations: 43.44 kB / 360.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.1625, allocations: 57.84 kB / 360.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1627, allocations: 334.8 kB / 360.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/0.163, allocations: 104.4 kB / 360.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000421/0.1635, allocations: 205.8 kB / 361 MB, free: 9.121 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007397/0.1642, allocations: 307.7 kB / 361.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.1642, allocations: 4 kB / 361.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001359/0.1656, allocations: 474.7 kB / 361.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.005e-05/0.1657, allocations: 33.7 kB / 361.8 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.1657, allocations: 8.062 kB / 361.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004288/0.1661, allocations: 84.73 kB / 361.9 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.1664, allocations: 55.89 kB / 361.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003316/0.1697, allocations: 1.986 MB / 363.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/0.1703, allocations: 55.78 kB / 364 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-05/0.1704, allocations: 12.2 kB / 364 MB, free: 5.918 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002231/0.1706, allocations: 153.7 kB / 364.1 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-05/0.1707, allocations: 27.66 kB / 364.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.87e-05/0.1708, allocations: 29.83 kB / 364.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1708, allocations: 0 / 364.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1708, allocations: 4.062 kB / 364.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.1708, allocations: 0 / 364.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004306/0.1712, allocations: 325.4 kB / 364.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1712, allocations: 0 / 364.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001511/0.1714, allocations: 24.02 kB / 364.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004579/0.1719, allocations: 88.78 kB / 364.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.1719, allocations: 0 / 364.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002613/0.1745, allocations: 1.816 MB / 366.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1745, allocations: 192 / 366.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.1758, allocations: 369.5 kB / 366.8 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.176, allocations: 100.8 kB / 366.9 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.578e-05/0.1761, allocations: 4 kB / 366.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.1764, allocations: 39.95 kB / 366.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.1766, allocations: 15.98 kB / 367 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.1766, allocations: 7.984 kB / 367 MB, free: 2.695 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003519/0.177, allocations: 205.9 kB / 367.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.177, allocations: 0 / 367.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006429/0.1776, allocations: 75.75 kB / 367.2 MB, free: 2.422 MB / 302.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003005/0.1779, allocations: 107.2 kB / 367.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.1795, allocations: 433.2 kB / 367.8 MB, free: 1.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.1795, allocations: 4.188 kB / 367.8 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006537/0.1801, allocations: 230.5 kB / 368 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005569/0.1807, allocations: 63.16 kB / 368.1 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.1824, allocations: 484.2 kB / 368.5 MB, free: 1.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.1829, allocations: 0.7595 MB / 369.3 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.1831, allocations: 30.27 kB / 369.3 MB, free: 244 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.407e-05/0.1832, allocations: 19.44 kB / 369.3 MB, free: 224 kB / 302.1 MB Notification: Performance of SimCode: time 1.143e-06/0.1832, allocations: 0 / 369.3 MB, free: 224 kB / 302.1 MB Notification: Performance of Templates: time 0.2259/0.4091, allocations: 4.121 MB / 373.5 MB, free: 24.95 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches