Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 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.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009296/0.0009297, allocations: 98.89 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 202.5 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002425/0.0002426, allocations: 8 kB / 306.6 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1191, allocations: 51.49 MB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003271/0.1224, allocations: 2.401 MB / 360.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.1237, allocations: 0.7407 MB / 361.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.1238, allocations: 4 kB / 361.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.289e-05/0.1239, allocations: 35.69 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.1241, allocations: 115.7 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.1244, allocations: 71.91 kB / 361.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.1247, allocations: 259.4 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.1249, allocations: 109.7 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.1251, allocations: 119.5 kB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.1253, allocations: 147.3 kB / 362.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.191e-05/0.1253, allocations: 24 kB / 362.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.396e-05/0.1254, allocations: 16 kB / 362.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.297e-05/0.1254, allocations: 51.81 kB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.662e-05/0.1255, allocations: 85.52 kB / 362.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000323/0.1259, allocations: 343.3 kB / 362.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1259, allocations: 0 / 362.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.347e-06/0.1259, allocations: 0 / 362.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1259, allocations: 0 / 362.6 MB, free: 9.383 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.001252/0.1272, allocations: 0.648 MB / 363.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1272, allocations: 12.03 kB / 363.2 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.1273, allocations: 31.62 kB / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.1277, allocations: 290.5 kB / 363.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.1277, allocations: 16.52 kB / 363.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.989e-05/0.1278, allocations: 28 kB / 363.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006835/0.1284, allocations: 335.6 kB / 363.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.1285, allocations: 0 / 363.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.1285, allocations: 12 kB / 363.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.1285, allocations: 8 kB / 363.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008019/0.1293, allocations: 314 kB / 364.2 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.1312, allocations: 1.178 MB / 365.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00085/0.1321, allocations: 282.6 kB / 365.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.1321, allocations: 4 kB / 365.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005001/0.1326, allocations: 193.8 kB / 365.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/0.1326, allocations: 4 kB / 365.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002308/0.1349, allocations: 0.7406 MB / 366.6 MB, free: 5.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.135, allocations: 106.8 kB / 366.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002877/0.1353, allocations: 278.7 kB / 367 MB, free: 4.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.1353, allocations: 25.7 kB / 367 MB, free: 4.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.1355, allocations: 207.6 kB / 367.2 MB, free: 4.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.1356, allocations: 39.39 kB / 367.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.1356, allocations: 4 kB / 367.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1357, allocations: 338.8 kB / 367.6 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.1361, allocations: 116.4 kB / 367.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004168/0.1365, allocations: 216.9 kB / 367.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.1369, allocations: 161.6 kB / 368.1 MB, free: 3.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1369, allocations: 4 kB / 368.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001214/0.1381, allocations: 0.4996 MB / 368.6 MB, free: 2.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.214e-05/0.1382, allocations: 36.2 kB / 368.6 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.1382, allocations: 4 kB / 368.6 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003713/0.1386, allocations: 92.77 kB / 368.7 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.1388, allocations: 51.91 kB / 368.8 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002512/0.1413, allocations: 1.869 MB / 370.6 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.1416, allocations: 67.77 kB / 370.7 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1417, allocations: 8 kB / 370.7 MB, free: 0.7188 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.1418, allocations: 149.7 kB / 370.9 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.1419, allocations: 23.72 kB / 370.9 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.535e-05/0.1419, allocations: 29.83 kB / 370.9 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.1419, allocations: 4.219 kB / 370.9 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.142, allocations: 3.953 kB / 370.9 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.142, allocations: 7.922 kB / 370.9 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.1422, allocations: 317.5 kB / 371.2 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1422, allocations: 0 / 371.2 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.1424, allocations: 31.97 kB / 371.3 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002732/0.1427, allocations: 84.8 kB / 371.4 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.1427, allocations: 7.938 kB / 371.4 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2172/0.3599, allocations: 1.735 MB / 373.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3599, allocations: 0.5156 kB / 373.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.3612, allocations: 403.8 kB / 373.5 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.341e-05/0.3613, allocations: 101.8 kB / 373.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.3614, allocations: 6.391 kB / 373.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/0.3616, allocations: 44.64 kB / 373.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.674e-05/0.3617, allocations: 23.05 kB / 373.7 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.3618, allocations: 8.406 kB / 373.7 MB, free: 18.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.362, allocations: 204.3 kB / 373.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.362, allocations: 0.875 kB / 373.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004914/0.3625, allocations: 76.52 kB / 374 MB, free: 18.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001531/0.3627, allocations: 107.6 kB / 374.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.3638, allocations: 457.3 kB / 374.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3638, allocations: 0.5312 kB / 374.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000497/0.3643, allocations: 251.1 kB / 374.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.3646, allocations: 43.33 kB / 374.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.3657, allocations: 0.5776 MB / 375.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.366, allocations: 0.7632 MB / 376.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.3661, allocations: 20.42 kB / 376.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.045e-05/0.3662, allocations: 23.27 kB / 376.2 MB, free: 16.74 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3662, allocations: 0.9062 kB / 376.2 MB, free: 16.74 MB / 302.1 MB Notification: Performance of Templates: time 0.008333/0.3745, allocations: 3.642 MB / 379.8 MB, free: 16.54 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches