Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001448/0.001448, allocations: 109 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001895, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001154, allocations: 71.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2421, allocations: 50.54 MB / 410 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.00395/0.2461, allocations: 2.8 MB / 412.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.2474, allocations: 0.6777 MB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.2475, allocations: 4 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.2477, allocations: 43.56 kB / 413.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001755/0.2479, allocations: 91.19 kB / 413.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.2481, allocations: 91.81 kB / 413.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003802/0.2485, allocations: 378.5 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.2488, allocations: 122.9 kB / 414.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.2489, allocations: 143.5 kB / 414.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.2492, allocations: 163.3 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.55e-05/0.2492, allocations: 36 kB / 414.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.827e-05/0.2493, allocations: 36 kB / 414.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.483e-05/0.2494, allocations: 79.73 kB / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.2495, allocations: 159.2 kB / 414.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.2499, allocations: 367.9 kB / 415.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2499, allocations: 4 kB / 415.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.2499, allocations: 7.938 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.2499, allocations: 0 / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001237/0.2512, allocations: 0.6536 MB / 415.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.2512, allocations: 8.031 kB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.175e-05/0.2513, allocations: 32.56 kB / 415.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.2516, allocations: 284.6 kB / 416.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.2517, allocations: 20.94 kB / 416.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/0.2517, allocations: 24.38 kB / 416.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006759/0.2524, allocations: 303.7 kB / 416.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2524, allocations: 3.938 kB / 416.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.671e-05/0.2525, allocations: 8 kB / 416.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.2525, allocations: 8 kB / 416.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008331/0.2533, allocations: 257.5 kB / 416.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.255, allocations: 1.081 MB / 417.8 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008156/0.2558, allocations: 210.5 kB / 418 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.2562, allocations: 96.83 kB / 418.1 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.2562, allocations: 11.92 kB / 418.1 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004583/0.2567, allocations: 157.9 kB / 418.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.783e-06/0.2567, allocations: 0 / 418.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002054/0.2587, allocations: 0.5147 MB / 418.8 MB, free: 8.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.2588, allocations: 110.8 kB / 418.9 MB, free: 8.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.2591, allocations: 278.7 kB / 419.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.2591, allocations: 33.7 kB / 419.2 MB, free: 8.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.2593, allocations: 203.5 kB / 419.4 MB, free: 7.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.2593, allocations: 39.45 kB / 419.4 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.965e-05/0.2594, allocations: 49.94 kB / 419.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.2595, allocations: 334.8 kB / 419.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000334/0.2599, allocations: 92.16 kB / 419.9 MB, free: 7.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004012/0.2603, allocations: 206.1 kB / 420.1 MB, free: 7.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009163/0.2612, allocations: 305.4 kB / 420.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.2612, allocations: 3.938 kB / 420.4 MB, free: 6.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001212/0.2624, allocations: 419.8 kB / 420.8 MB, free: 6.285 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.2625, allocations: 40.58 kB / 420.8 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2625, allocations: 4 kB / 420.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003567/0.2629, allocations: 80.67 kB / 420.9 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.2631, allocations: 39.97 kB / 421 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/0.2654, allocations: 1.722 MB / 422.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003506/0.2658, allocations: 55.7 kB / 422.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.2658, allocations: 20 kB / 422.7 MB, free: 4.184 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001514/0.266, allocations: 145.7 kB / 422.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.854e-05/0.266, allocations: 23.72 kB / 422.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.545e-05/0.2661, allocations: 25.7 kB / 422.9 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2661, allocations: 3.938 kB / 422.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-06/0.2661, allocations: 0 / 422.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2661, allocations: 4 kB / 422.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.2664, allocations: 305.4 kB / 423.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2664, allocations: 3.984 kB / 423.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.2665, allocations: 19.98 kB / 423.3 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002598/0.2668, allocations: 64.8 kB / 423.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.2668, allocations: 7.938 kB / 423.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.2689, allocations: 1.703 MB / 425 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.269, allocations: 0 / 425 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.27, allocations: 309.5 kB / 425.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.2701, allocations: 112.8 kB / 425.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.274e-05/0.2702, allocations: 8 kB / 425.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.2704, allocations: 27.97 kB / 425.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.778e-05/0.2705, allocations: 19.97 kB / 425.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2706, allocations: 4 kB / 425.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.2707, allocations: 205.9 kB / 425.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2708, allocations: 0 / 425.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.2711, allocations: 75.84 kB / 425.8 MB, free: 0.8945 MB / 334.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 (7): * Single equations (assignments): 4 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001449/0.2713, allocations: 111.2 kB / 425.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.2723, allocations: 417.8 kB / 426.3 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2723, allocations: 0 / 426.3 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004557/0.2728, allocations: 219.2 kB / 426.5 MB, free: 120 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.2731, allocations: 40.86 kB / 426.6 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.2741, allocations: 494.2 kB / 427 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.2744, allocations: 0.7557 MB / 427.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.99e-05/0.2745, allocations: 23.44 kB / 427.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2745, allocations: 0 / 427.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of Templates: time 0.006416/0.2809, allocations: 4.425 MB / 432.2 MB, free: 10.35 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches