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.001243/0.001242, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 60.38 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1173, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.005596/0.1229, allocations: 2.934 MB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.125, allocations: 0.7635 MB / 362.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004258/0.1255, allocations: 8 kB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.1258, allocations: 47.5 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004413/0.1262, allocations: 99.17 kB / 362.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004618/0.1267, allocations: 115.8 kB / 362.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007407/0.1275, allocations: 426.4 kB / 363.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003295/0.1278, allocations: 127.1 kB / 363.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000309/0.1281, allocations: 159.4 kB / 363.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.1284, allocations: 171.2 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.503e-05/0.1284, allocations: 40 kB / 363.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.198e-05/0.1285, allocations: 40 kB / 363.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.1286, allocations: 83.69 kB / 363.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000211/0.1289, allocations: 179.2 kB / 364.1 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004961/0.1294, allocations: 450.5 kB / 364.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1294, allocations: 0 / 364.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1294, allocations: 4 kB / 364.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1294, allocations: 0 / 364.5 MB, free: 7.703 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.00133/0.1307, allocations: 0.6691 MB / 365.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1308, allocations: 16.02 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.814e-05/0.1309, allocations: 40.56 kB / 365.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/0.1313, allocations: 299.5 kB / 365.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.1314, allocations: 24.92 kB / 365.6 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.1314, allocations: 24.38 kB / 365.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006892/0.1321, allocations: 328 kB / 365.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1321, allocations: 0 / 365.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.1322, allocations: 12 kB / 365.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.1322, allocations: 4 kB / 365.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007536/0.1329, allocations: 298 kB / 366.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.1348, allocations: 1.139 MB / 367.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007908/0.1356, allocations: 254.5 kB / 367.6 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.136, allocations: 108.8 kB / 367.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.136, allocations: 0 / 367.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004566/0.1365, allocations: 189.8 kB / 367.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.1365, allocations: 0 / 367.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002138/0.1386, allocations: 0.6622 MB / 368.6 MB, free: 3.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.1387, allocations: 110.8 kB / 368.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.139, allocations: 282.6 kB / 368.9 MB, free: 3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.1391, allocations: 33.7 kB / 369 MB, free: 2.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.1392, allocations: 195.6 kB / 369.2 MB, free: 2.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.211e-05/0.1393, allocations: 43.45 kB / 369.2 MB, free: 2.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/0.1394, allocations: 49.84 kB / 369.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1395, allocations: 334.8 kB / 369.6 MB, free: 2.328 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.1399, allocations: 108.6 kB / 369.7 MB, free: 2.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003794/0.1402, allocations: 198.5 kB / 369.9 MB, free: 1.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006533/0.1409, allocations: 318.3 kB / 370.2 MB, free: 1.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.1409, allocations: 4 kB / 370.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001152/0.1421, allocations: 471.5 kB / 370.7 MB, free: 1.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.1421, allocations: 41.69 kB / 370.7 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.1421, allocations: 7.938 kB / 370.7 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003921/0.1425, allocations: 80.88 kB / 370.8 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.1428, allocations: 47.89 kB / 370.8 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2137/0.3565, allocations: 1.987 MB / 372.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000484/0.357, allocations: 55.81 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.112e-05/0.3571, allocations: 9.531 kB / 372.9 MB, free: 19.6 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.0001908/0.3573, allocations: 156.9 kB / 373 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.578e-05/0.3573, allocations: 22.62 kB / 373.1 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.367e-05/0.3574, allocations: 26.73 kB / 373.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3574, allocations: 1.062 kB / 373.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3574, allocations: 3.156 kB / 373.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3574, allocations: 1.406 kB / 373.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003906/0.3578, allocations: 329.8 kB / 373.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-06/0.3578, allocations: 1.719 kB / 373.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.358, allocations: 21.56 kB / 373.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003773/0.3584, allocations: 79.92 kB / 373.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.3584, allocations: 3.531 kB / 373.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002452/0.3609, allocations: 1.812 MB / 375.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.3609, allocations: 0.5156 kB / 375.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.3621, allocations: 368.5 kB / 375.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.411e-05/0.3622, allocations: 105 kB / 375.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.091e-05/0.3622, allocations: 7.172 kB / 375.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.3625, allocations: 34.2 kB / 375.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.031e-05/0.3626, allocations: 17.34 kB / 375.8 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.3626, allocations: 8.078 kB / 375.9 MB, free: 17.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002349/0.3629, allocations: 198.3 kB / 376 MB, free: 17.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3629, allocations: 1.219 kB / 376 MB, free: 17.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004692/0.3633, allocations: 79.09 kB / 376.1 MB, free: 17.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.0001596/0.3635, allocations: 114 kB / 376.2 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.3646, allocations: 428.6 kB / 376.7 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3646, allocations: 4.438 kB / 376.7 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005655/0.3652, allocations: 236.9 kB / 376.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.3656, allocations: 53.88 kB / 376.9 MB, free: 16.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.3668, allocations: 489 kB / 377.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.367, allocations: 0.7516 MB / 378.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.3671, allocations: 30 kB / 378.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.3672, allocations: 23.83 kB / 378.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3672, allocations: 0 / 378.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01041/0.3776, allocations: 4.16 MB / 382.4 MB, free: 15.74 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 cvode -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