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.001237/0.001237, allocations: 116.9 kB / 17.83 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 199.8 kB / 18.78 MB, free: 4.297 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.527/1.527, allocations: 230.4 MB / 250 MB, free: 9.098 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.001879/0.001879, allocations: 67.84 kB / 367.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3069, allocations: 53.3 MB / 420.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.007496/0.3144, allocations: 2.967 MB / 423.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.3168, allocations: 0.7557 MB / 424.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002557/0.3171, allocations: 7.938 kB / 424.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002643/0.3174, allocations: 47.56 kB / 424.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000401/0.3178, allocations: 115.1 kB / 424.6 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004379/0.3182, allocations: 115.8 kB / 424.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007499/0.3189, allocations: 414.4 kB / 425.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003046/0.3193, allocations: 91.27 kB / 425.2 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003155/0.3196, allocations: 159.4 kB / 425.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003445/0.3199, allocations: 175.2 kB / 425.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.093e-05/0.32, allocations: 40 kB / 425.5 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.175e-05/0.3201, allocations: 47.94 kB / 425.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.3202, allocations: 75.77 kB / 425.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002799/0.3205, allocations: 175.2 kB / 425.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008089/0.3213, allocations: 454.1 kB / 426.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3213, allocations: 0 / 426.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3213, allocations: 0 / 426.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.3213, allocations: 4 kB / 426.3 MB, free: 2.723 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.002128/0.3235, allocations: 0.6806 MB / 427 MB, free: 1.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/0.3235, allocations: 12.03 kB / 427 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.3236, allocations: 40.64 kB / 427 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/0.3244, allocations: 303.7 kB / 427.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.366e-05/0.3244, allocations: 24.94 kB / 427.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.078e-05/0.3245, allocations: 24.38 kB / 427.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.3257, allocations: 331.9 kB / 427.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.3257, allocations: 0 / 427.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.383e-05/0.3258, allocations: 16 kB / 427.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.3258, allocations: 4 kB / 427.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.3273, allocations: 282.1 kB / 428 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003454/0.3307, allocations: 1.143 MB / 429.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.3323, allocations: 246.5 kB / 429.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006585/0.333, allocations: 104.8 kB / 429.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.333, allocations: 3.984 kB / 429.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008567/0.3339, allocations: 185.2 kB / 429.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.635e-06/0.3339, allocations: 4 kB / 429.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.004394/0.3383, allocations: 0.6591 MB / 430.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.3384, allocations: 106.8 kB / 430.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005858/0.339, allocations: 286.6 kB / 430.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.339, allocations: 29.7 kB / 430.7 MB, free: 14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.3392, allocations: 200.1 kB / 430.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.889e-05/0.3393, allocations: 43.64 kB / 431 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/0.3395, allocations: 49.94 kB / 431 MB, free: 13.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002274/0.3397, allocations: 335 kB / 431.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006477/0.3404, allocations: 108.4 kB / 431.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007637/0.3411, allocations: 216.7 kB / 431.7 MB, free: 13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.3424, allocations: 305.9 kB / 432 MB, free: 12.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3424, allocations: 0 / 432 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.002405/0.3448, allocations: 483.7 kB / 432.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.517e-05/0.3449, allocations: 36.52 kB / 432.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.3449, allocations: 0 / 432.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006549/0.3456, allocations: 84.86 kB / 432.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004009/0.346, allocations: 51.91 kB / 432.6 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005062/0.351, allocations: 1.998 MB / 434.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006892/0.3517, allocations: 55.69 kB / 434.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.346e-05/0.3518, allocations: 16 kB / 434.7 MB, free: 9.793 MB / 350.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.0003972/0.3522, allocations: 145.8 kB / 434.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.3523, allocations: 27.84 kB / 434.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.3524, allocations: 25.91 kB / 434.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.3524, allocations: 4 kB / 434.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.629e-05/0.3524, allocations: 7.922 kB / 434.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3524, allocations: 0 / 434.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008037/0.3532, allocations: 321.3 kB / 435.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3532, allocations: 4 kB / 435.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.3535, allocations: 20.02 kB / 435.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006045/0.3541, allocations: 88.78 kB / 435.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.3541, allocations: 4 kB / 435.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004575/0.3587, allocations: 1.806 MB / 437.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3587, allocations: 0 / 437.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.3607, allocations: 369.5 kB / 437.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/0.3609, allocations: 104.9 kB / 437.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.901e-05/0.3609, allocations: 8 kB / 437.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/0.3614, allocations: 35.95 kB / 437.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.3615, allocations: 19.98 kB / 437.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.3616, allocations: 3.984 kB / 437.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004077/0.362, allocations: 201.9 kB / 437.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.362, allocations: 0 / 437.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007696/0.3627, allocations: 79.89 kB / 437.9 MB, free: 6.293 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.0002364/0.363, allocations: 107.2 kB / 438 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.3649, allocations: 430 kB / 438.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3649, allocations: 0 / 438.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009082/0.3658, allocations: 233 kB / 438.7 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006137/0.3664, allocations: 53.89 kB / 438.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.3684, allocations: 495.6 kB / 439.2 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006453/0.3691, allocations: 0.748 MB / 439.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.3693, allocations: 30.27 kB / 440 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.862e-05/0.3694, allocations: 23.44 kB / 440 MB, free: 4.109 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3694, allocations: 0 / 440 MB, free: 4.109 MB / 350.1 MB Notification: Performance of Templates: time 0.01633/0.3857, allocations: 4.24 MB / 444.2 MB, free: 15.91 MB / 366.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/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