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.001052/0.001052, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001165, allocations: 64.56 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08514/0.08632, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003956/0.09032, allocations: 2.938 MB / 361.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.09159, allocations: 0.7752 MB / 362.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.09173, allocations: 8 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.09189, allocations: 47.5 kB / 362.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.09209, allocations: 95.19 kB / 362.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.09235, allocations: 119.8 kB / 362.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004025/0.09276, allocations: 418.4 kB / 363.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.093, allocations: 131.2 kB / 363.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.09319, allocations: 151.4 kB / 363.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.09338, allocations: 167.3 kB / 363.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.09344, allocations: 40 kB / 363.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.586e-05/0.0935, allocations: 40 kB / 363.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.65e-05/0.09358, allocations: 87.69 kB / 363.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.09375, allocations: 183.1 kB / 364.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003743/0.09413, allocations: 454.5 kB / 364.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.09414, allocations: 0 / 364.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09415, allocations: 4 kB / 364.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.09416, allocations: 0 / 364.5 MB, free: 7.711 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.001142/0.0953, allocations: 0.6691 MB / 365.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.902e-05/0.09534, allocations: 12.03 kB / 365.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.219e-05/0.09541, allocations: 32.56 kB / 365.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.09578, allocations: 303.5 kB / 365.5 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.09581, allocations: 24.94 kB / 365.6 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.709e-05/0.09586, allocations: 20.38 kB / 365.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006563/0.09652, allocations: 331.9 kB / 365.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.09654, allocations: 0 / 365.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.59e-05/0.09657, allocations: 8 kB / 365.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.09659, allocations: 11.98 kB / 365.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007571/0.09735, allocations: 286 kB / 366.2 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.09907, allocations: 1.147 MB / 367.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007942/0.09988, allocations: 250.5 kB / 367.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.1002, allocations: 112.8 kB / 367.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.1002, allocations: 3.984 kB / 367.7 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004338/0.1007, allocations: 193.3 kB / 367.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.1007, allocations: 0 / 367.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.00217/0.1029, allocations: 0.655 MB / 368.6 MB, free: 3.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.1029, allocations: 106.8 kB / 368.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.1032, allocations: 286.6 kB / 368.9 MB, free: 3.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.1032, allocations: 33.7 kB / 369 MB, free: 2.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1034, allocations: 195.6 kB / 369.2 MB, free: 2.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/0.1034, allocations: 43.45 kB / 369.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.12e-05/0.1035, allocations: 49.84 kB / 369.3 MB, free: 2.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1036, allocations: 334.8 kB / 369.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003329/0.104, allocations: 108.4 kB / 369.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003771/0.1043, allocations: 206.5 kB / 369.9 MB, free: 1.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006453/0.105, allocations: 310.6 kB / 370.2 MB, free: 1.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.105, allocations: 4 kB / 370.2 MB, free: 1.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001147/0.1062, allocations: 471.5 kB / 370.7 MB, free: 1.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.1062, allocations: 37.69 kB / 370.7 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1062, allocations: 4 kB / 370.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003401/0.1066, allocations: 84.86 kB / 370.8 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000197/0.1068, allocations: 47.91 kB / 370.8 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.149/0.2558, allocations: 1.987 MB / 372.8 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.2562, allocations: 52.59 kB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.2563, allocations: 13.31 kB / 372.9 MB, free: 19 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.0001396/0.2564, allocations: 153 kB / 373 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.937e-05/0.2565, allocations: 23.81 kB / 373.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.708e-05/0.2565, allocations: 24.89 kB / 373.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2565, allocations: 6.719 kB / 373.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.2565, allocations: 0 / 373.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2565, allocations: 3.688 kB / 373.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.2568, allocations: 330 kB / 373.4 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2568, allocations: 4.891 kB / 373.4 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.2569, allocations: 21.55 kB / 373.4 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002803/0.2572, allocations: 80.31 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.2573, allocations: 2.328 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001888/0.2591, allocations: 1.812 MB / 375.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2592, allocations: 0.6875 kB / 375.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009558/0.2601, allocations: 363.9 kB / 375.7 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.882e-05/0.2602, allocations: 106.5 kB / 375.8 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.693e-05/0.2602, allocations: 7.391 kB / 375.8 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.2605, allocations: 30.2 kB / 375.8 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.106e-05/0.2605, allocations: 23.78 kB / 375.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.2606, allocations: 6.875 kB / 375.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.2607, allocations: 202.3 kB / 376.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2607, allocations: 0 / 376.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.2611, allocations: 79.44 kB / 376.1 MB, free: 17.09 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.0001016/0.2612, allocations: 107.5 kB / 376.2 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008836/0.2621, allocations: 432.2 kB / 376.7 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2621, allocations: 0 / 376.7 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004461/0.2626, allocations: 239.9 kB / 376.9 MB, free: 16.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.2629, allocations: 51 kB / 376.9 MB, free: 16.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008918/0.2638, allocations: 493.8 kB / 377.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001621/0.264, allocations: 0.7543 MB / 378.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.543e-05/0.2641, allocations: 27.31 kB / 378.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.302e-05/0.2641, allocations: 20.52 kB / 378.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2641, allocations: 0 / 378.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Templates: time 0.2407/0.5048, allocations: 4.155 MB / 382.4 MB, free: 15.47 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 -s gbode -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