Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001533/0.001533, allocations: 115.6 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001614/0.001614, allocations: 206.7 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.388/1.388, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 63.89 kB / 359.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.247, allocations: 50.54 MB / 410.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004381/0.2514, allocations: 2.964 MB / 413.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.2528, allocations: 0.7557 MB / 414 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.253, allocations: 7.938 kB / 414 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.2531, allocations: 51.5 kB / 414 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.2533, allocations: 107.2 kB / 414.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.2536, allocations: 119.8 kB / 414.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004852/0.2541, allocations: 414.4 kB / 414.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.2543, allocations: 95.2 kB / 414.7 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002026/0.2545, allocations: 159.4 kB / 414.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.2548, allocations: 175.2 kB / 415.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.832e-05/0.2548, allocations: 40 kB / 415.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.962e-05/0.2549, allocations: 40 kB / 415.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.796e-05/0.255, allocations: 75.7 kB / 415.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001842/0.2551, allocations: 171.2 kB / 415.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005268/0.2557, allocations: 458.2 kB / 415.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2557, allocations: 0 / 415.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2557, allocations: 3.938 kB / 415.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2557, allocations: 0 / 415.8 MB, free: 11.98 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.00142/0.2571, allocations: 0.6767 MB / 416.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2571, allocations: 8.031 kB / 416.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.123e-05/0.2572, allocations: 48.7 kB / 416.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.2577, allocations: 303.7 kB / 416.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.2577, allocations: 20.94 kB / 416.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.427e-05/0.2578, allocations: 24.38 kB / 416.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007519/0.2585, allocations: 335.9 kB / 417.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2585, allocations: 0 / 417.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.201e-05/0.2586, allocations: 8 kB / 417.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2586, allocations: 8 kB / 417.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008452/0.2594, allocations: 282.1 kB / 417.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.2614, allocations: 1.143 MB / 418.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008953/0.2623, allocations: 250.5 kB / 418.9 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.2627, allocations: 96.78 kB / 419 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.2627, allocations: 4 kB / 419 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004886/0.2632, allocations: 177.9 kB / 419.2 MB, free: 8.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.2632, allocations: 3.938 kB / 419.2 MB, free: 8.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.00249/0.2657, allocations: 0.663 MB / 419.8 MB, free: 7.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.2658, allocations: 110.8 kB / 420 MB, free: 7.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.2661, allocations: 286.7 kB / 420.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.2661, allocations: 29.7 kB / 420.3 MB, free: 7.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.2663, allocations: 200 kB / 420.5 MB, free: 7.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.429e-05/0.2663, allocations: 47.64 kB / 420.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.2664, allocations: 45.94 kB / 420.6 MB, free: 6.961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.2666, allocations: 338.8 kB / 420.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003637/0.2669, allocations: 108.4 kB / 421 MB, free: 6.516 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004396/0.2674, allocations: 200.9 kB / 421.2 MB, free: 6.277 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000781/0.2682, allocations: 311.9 kB / 421.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2682, allocations: 0 / 421.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001339/0.2695, allocations: 487 kB / 422 MB, free: 5.441 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.2696, allocations: 33.7 kB / 422 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2696, allocations: 4.062 kB / 422 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003985/0.27, allocations: 88.73 kB / 422.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.2702, allocations: 39.97 kB / 422.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002831/0.273, allocations: 2.005 MB / 424.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.2733, allocations: 51.75 kB / 424.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.2734, allocations: 12 kB / 424.2 MB, free: 3.062 MB / 334.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.0001711/0.2735, allocations: 157.8 kB / 424.3 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.2736, allocations: 23.86 kB / 424.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.333e-05/0.2736, allocations: 25.83 kB / 424.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2736, allocations: 0 / 424.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2736, allocations: 4 kB / 424.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2737, allocations: 0 / 424.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000322/0.274, allocations: 329.3 kB / 424.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.274, allocations: 0 / 424.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.2741, allocations: 27.97 kB / 424.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002746/0.2744, allocations: 76.8 kB / 424.8 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.2744, allocations: 8 kB / 424.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002431/0.2768, allocations: 1.81 MB / 426.6 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2768, allocations: 0 / 426.6 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.278, allocations: 371.8 kB / 427 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.2781, allocations: 104.9 kB / 427.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.2781, allocations: 8 kB / 427.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.2784, allocations: 31.95 kB / 427.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.2784, allocations: 15.98 kB / 427.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.2784, allocations: 11.98 kB / 427.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.2787, allocations: 201.9 kB / 427.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2787, allocations: 0 / 427.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003973/0.2791, allocations: 83.83 kB / 427.5 MB, free: 15.55 MB / 350.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.0001592/0.2792, allocations: 111.6 kB / 427.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.2803, allocations: 429.8 kB / 428 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2803, allocations: 0 / 428 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005002/0.2808, allocations: 231.1 kB / 428.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.2811, allocations: 48.72 kB / 428.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.2822, allocations: 497.6 kB / 428.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.2826, allocations: 0.7558 MB / 429.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.2827, allocations: 30.27 kB / 429.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.028e-05/0.2828, allocations: 19.44 kB / 429.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2828, allocations: 0 / 429.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of Templates: time 0.008677/0.2914, allocations: 4.234 MB / 433.8 MB, free: 9.172 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches