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.001183/0.001183, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 101.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009511/0.0009512, allocations: 39.89 kB / 350 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3348, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003474/0.3383, allocations: 2.967 MB / 402.5 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.3393, allocations: 0.7245 MB / 403.2 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.3395, allocations: 4 kB / 403.2 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.3396, allocations: 39.69 kB / 403.2 MB, free: 29.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.3398, allocations: 91.36 kB / 403.3 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.3401, allocations: 103.8 kB / 403.4 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.3405, allocations: 390.4 kB / 403.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002481/0.3408, allocations: 107.8 kB / 403.9 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.3409, allocations: 143.4 kB / 404 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.3411, allocations: 155.2 kB / 404.2 MB, free: 28.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.618e-05/0.3412, allocations: 24 kB / 404.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.887e-05/0.3413, allocations: 20 kB / 404.2 MB, free: 28.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.826e-05/0.3413, allocations: 63.69 kB / 404.3 MB, free: 28.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.3415, allocations: 159.2 kB / 404.4 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000424/0.342, allocations: 436.1 kB / 404.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.342, allocations: 4 kB / 404.9 MB, free: 27.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.342, allocations: 0 / 404.9 MB, free: 27.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.342, allocations: 0 / 404.9 MB, free: 27.95 MB / 298.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.001476/0.3435, allocations: 0.6653 MB / 405.5 MB, free: 27.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/0.3435, allocations: 12.03 kB / 405.6 MB, free: 27.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.622e-05/0.3436, allocations: 32.56 kB / 405.6 MB, free: 27.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004149/0.3441, allocations: 303.6 kB / 405.9 MB, free: 26.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.3441, allocations: 16.94 kB / 405.9 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.937e-05/0.3442, allocations: 28.31 kB / 405.9 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007188/0.3449, allocations: 324 kB / 406.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.3449, allocations: 0 / 406.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.345, allocations: 16 kB / 406.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.345, allocations: 12 kB / 406.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007184/0.3457, allocations: 274.1 kB / 406.5 MB, free: 26.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.3473, allocations: 1.17 MB / 407.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008251/0.3482, allocations: 250.5 kB / 408 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.3485, allocations: 104.8 kB / 408.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.3485, allocations: 7.984 kB / 408.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005965/0.3491, allocations: 185.8 kB / 408.2 MB, free: 24.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.3491, allocations: 0 / 408.2 MB, free: 24.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002166/0.3513, allocations: 0.655 MB / 408.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.3514, allocations: 110.8 kB / 409 MB, free: 23.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002337/0.3516, allocations: 286.5 kB / 409.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3516, allocations: 29.7 kB / 409.3 MB, free: 23.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.053e-05/0.3517, allocations: 191.7 kB / 409.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.3518, allocations: 43.39 kB / 409.5 MB, free: 22.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.174e-05/0.3519, allocations: 53.84 kB / 409.6 MB, free: 22.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.461e-05/0.3519, allocations: 338.8 kB / 409.9 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/0.3523, allocations: 104.4 kB / 410 MB, free: 22.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000337/0.3526, allocations: 207.9 kB / 410.2 MB, free: 22.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006308/0.3532, allocations: 311.7 kB / 410.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3533, allocations: 0 / 410.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00115/0.3544, allocations: 478.3 kB / 411 MB, free: 21.42 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.3545, allocations: 33.7 kB / 411 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.3545, allocations: 4 kB / 411 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000383/0.3549, allocations: 84.86 kB / 411.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.3551, allocations: 47.91 kB / 411.2 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.3573, allocations: 1.803 MB / 413 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.3576, allocations: 51.81 kB / 413 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.3577, allocations: 20.2 kB / 413 MB, free: 19.23 MB / 298.7 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.0001677/0.3579, allocations: 150.4 kB / 413.2 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.3579, allocations: 27.66 kB / 413.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.3579, allocations: 25.83 kB / 413.2 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.358, allocations: 4 kB / 413.2 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.358, allocations: 0 / 413.2 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.358, allocations: 4 kB / 413.3 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.3582, allocations: 329.2 kB / 413.6 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3582, allocations: 3.984 kB / 413.6 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.3584, allocations: 15.98 kB / 413.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002651/0.3586, allocations: 84.8 kB / 413.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.3587, allocations: 4 kB / 413.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.3604, allocations: 1.68 MB / 415.4 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3604, allocations: 0 / 415.4 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.3619, allocations: 1.05 MB / 416.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.362, allocations: 104.8 kB / 416.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.362, allocations: 4 kB / 416.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.3623, allocations: 35.95 kB / 416.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.3624, allocations: 23.97 kB / 416.6 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.3624, allocations: 0 / 416.6 MB, free: 15.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001698/0.3626, allocations: 202 kB / 416.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3626, allocations: 0 / 416.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004876/0.3631, allocations: 87.69 kB / 416.9 MB, free: 15.15 MB / 298.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) * 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.000139/0.3632, allocations: 103.2 kB / 417 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009236/0.3641, allocations: 430.4 kB / 417.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3642, allocations: 0 / 417.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004259/0.3646, allocations: 242.5 kB / 417.6 MB, free: 14.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.365, allocations: 55.66 kB / 417.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.3661, allocations: 0.7206 MB / 418.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001983/0.3663, allocations: 0.7638 MB / 419.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.3664, allocations: 22.3 kB / 419.2 MB, free: 12.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.673e-05/0.3665, allocations: 19.44 kB / 419.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3665, allocations: 0 / 419.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of Templates: time 0.00688/0.3734, allocations: 3.965 MB / 423.2 MB, free: 8.766 MB / 298.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@2/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