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.0009376/0.0009377, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 207.8 kB / 18.94 MB, free: 4.844 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.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000241/0.0002413, allocations: 8 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1018, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003428/0.1052, allocations: 2.618 MB / 362.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.1068, allocations: 0.752 MB / 363.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002705/0.1071, allocations: 4 kB / 363.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.1073, allocations: 39.69 kB / 363.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003103/0.1076, allocations: 79.39 kB / 363.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.1079, allocations: 99.91 kB / 363.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004941/0.1084, allocations: 390.4 kB / 363.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002491/0.1087, allocations: 115.8 kB / 364 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.1089, allocations: 127.4 kB / 364.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.1092, allocations: 155.2 kB / 364.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.614e-05/0.1092, allocations: 20 kB / 364.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.1093, allocations: 16 kB / 364.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.864e-05/0.1094, allocations: 51.77 kB / 364.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.1095, allocations: 180.8 kB / 364.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.1099, allocations: 347.2 kB / 364.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1099, allocations: 4 kB / 364.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1099, allocations: 0 / 364.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1099, allocations: 0 / 364.9 MB, free: 8.293 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.001292/0.1112, allocations: 0.6498 MB / 365.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1113, allocations: 12.03 kB / 365.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1114, allocations: 32.56 kB / 365.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.1118, allocations: 299.5 kB / 365.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.1118, allocations: 24.94 kB / 365.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.72e-05/0.1118, allocations: 24.38 kB / 365.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007682/0.1126, allocations: 343.9 kB / 366.3 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1126, allocations: 3.938 kB / 366.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.1127, allocations: 12 kB / 366.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.1127, allocations: 4 kB / 366.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008614/0.1136, allocations: 314.1 kB / 366.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.1156, allocations: 1.174 MB / 367.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008892/0.1165, allocations: 290.5 kB / 368 MB, free: 4.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000352/0.1169, allocations: 116.8 kB / 368.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/0.1169, allocations: 4 kB / 368.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005198/0.1174, allocations: 197.8 kB / 368.4 MB, free: 4.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.415e-06/0.1174, allocations: 224 / 368.4 MB, free: 4.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002552/0.12, allocations: 0.7445 MB / 369.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/0.1201, allocations: 110.8 kB / 369.2 MB, free: 3.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.1205, allocations: 282.6 kB / 369.5 MB, free: 3.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.766e-05/0.1205, allocations: 33.7 kB / 369.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.1207, allocations: 203.5 kB / 369.7 MB, free: 3.172 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.613e-05/0.1208, allocations: 43.44 kB / 369.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.748e-05/0.1208, allocations: 25.7 kB / 369.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.121, allocations: 338.8 kB / 370.1 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.1214, allocations: 116.4 kB / 370.2 MB, free: 2.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.1218, allocations: 220.8 kB / 370.4 MB, free: 2.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007965/0.1226, allocations: 342.5 kB / 370.8 MB, free: 2.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1227, allocations: 0 / 370.8 MB, free: 2.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001364/0.124, allocations: 0.4958 MB / 371.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.408e-05/0.1241, allocations: 33.77 kB / 371.3 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1241, allocations: 7.984 kB / 371.3 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003962/0.1245, allocations: 80.81 kB / 371.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003578/0.1249, allocations: 63.89 kB / 371.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2124/0.3373, allocations: 1.834 MB / 373.3 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004517/0.3378, allocations: 62.36 kB / 373.3 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.3378, allocations: 12 kB / 373.4 MB, free: 18.27 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 (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.0001876/0.338, allocations: 159 kB / 373.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.743e-05/0.3381, allocations: 27.41 kB / 373.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.144e-05/0.3381, allocations: 25.41 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3381, allocations: 1.656 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3381, allocations: 4.031 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.3382, allocations: 1.594 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003581/0.3385, allocations: 322.9 kB / 373.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3385, allocations: 0 / 373.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.3387, allocations: 28.14 kB / 373.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003141/0.339, allocations: 94.11 kB / 374 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.339, allocations: 1.266 kB / 374 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/0.3411, allocations: 1.712 MB / 375.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3412, allocations: 0 / 375.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.3424, allocations: 405.7 kB / 376.1 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.3424, allocations: 102.9 kB / 376.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.3425, allocations: 9.078 kB / 376.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.3427, allocations: 42.34 kB / 376.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.71e-05/0.3428, allocations: 29.64 kB / 376.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.3429, allocations: 8.016 kB / 376.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002181/0.3431, allocations: 200.3 kB / 376.5 MB, free: 16.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3431, allocations: 0 / 376.5 MB, free: 16.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003975/0.3435, allocations: 80 kB / 376.6 MB, free: 16.45 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 (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.0001277/0.3436, allocations: 107.9 kB / 376.7 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.3448, allocations: 458.5 kB / 377.1 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3448, allocations: 0 / 377.1 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000545/0.3454, allocations: 252.8 kB / 377.4 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.3458, allocations: 46.53 kB / 377.4 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.3469, allocations: 0.63 MB / 378.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.3472, allocations: 0.755 MB / 378.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.217e-05/0.3473, allocations: 20.97 kB / 378.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of SimCode: time 1.653e-06/0.3473, allocations: 0 / 378.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Templates: time 0.008658/0.3559, allocations: 4.708 MB / 383.5 MB, free: 14.59 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches