Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 101.4 kB / 16.5 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001285, allocations: 193.9 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 49.27 kB / 300 MB, free: 6.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09349, allocations: 49.45 MB / 349.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003928/0.09746, allocations: 2.974 MB / 352.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.09892, allocations: 0.7324 MB / 353.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.09911, allocations: 4 kB / 353.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.09931, allocations: 31.75 kB / 353.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.09957, allocations: 95.31 kB / 353.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.09991, allocations: 95.91 kB / 353.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003858/0.1003, allocations: 390.4 kB / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.1006, allocations: 111.8 kB / 353.8 MB, free: 388 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.1007, allocations: 135.4 kB / 354 MB, free: 252 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001898/0.1009, allocations: 155.3 kB / 354.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.354e-05/0.101, allocations: 24 kB / 354.1 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.271e-05/0.1011, allocations: 20 kB / 354.2 MB, free: 52 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.248e-05/0.1012, allocations: 67.67 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.1014, allocations: 159.1 kB / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004065/0.1018, allocations: 438.8 kB / 354.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1018, allocations: 0 / 354.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1018, allocations: 0 / 354.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.1018, allocations: 0 / 354.8 MB, free: 15.4 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.00137/0.1032, allocations: 0.6715 MB / 355.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1032, allocations: 16.03 kB / 355.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.633e-05/0.1033, allocations: 36.5 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.1037, allocations: 299.5 kB / 355.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.1037, allocations: 20.94 kB / 355.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.1038, allocations: 24.38 kB / 355.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007255/0.1045, allocations: 328 kB / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1045, allocations: 0 / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.767e-05/0.1046, allocations: 8 kB / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.1046, allocations: 8 kB / 356.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008474/0.1054, allocations: 294 kB / 356.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001991/0.1074, allocations: 1.15 MB / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008556/0.1083, allocations: 250.5 kB / 357.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003501/0.1087, allocations: 104.8 kB / 358 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.1087, allocations: 4 kB / 358 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005815/0.1093, allocations: 185.8 kB / 358.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.043e-06/0.1093, allocations: 0 / 358.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002413/0.1117, allocations: 0.6662 MB / 358.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.159e-05/0.1118, allocations: 102.8 kB / 358.9 MB, free: 11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.1122, allocations: 290.5 kB / 359.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.1122, allocations: 25.7 kB / 359.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.1124, allocations: 199.7 kB / 359.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.117e-05/0.1124, allocations: 35.45 kB / 359.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.1125, allocations: 53.84 kB / 359.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1127, allocations: 334.8 kB / 359.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003735/0.1131, allocations: 116.4 kB / 360 MB, free: 9.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/0.1135, allocations: 200.8 kB / 360.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007549/0.1143, allocations: 311.8 kB / 360.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1143, allocations: 0 / 360.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001384/0.1157, allocations: 478.5 kB / 360.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.093e-05/0.1158, allocations: 33.7 kB / 361 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.1158, allocations: 4 kB / 361 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003791/0.1162, allocations: 92.86 kB / 361.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.1164, allocations: 47.89 kB / 361.1 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002785/0.1192, allocations: 1.799 MB / 362.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/0.1196, allocations: 59.77 kB / 363 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.1196, allocations: 8 kB / 363 MB, free: 6.68 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.000181/0.1198, allocations: 153.7 kB / 363.1 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.029e-05/0.1198, allocations: 23.72 kB / 363.1 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.1199, allocations: 25.83 kB / 363.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1199, allocations: 4.219 kB / 363.2 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1199, allocations: 4.125 kB / 363.2 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1199, allocations: 3.938 kB / 363.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000362/0.1203, allocations: 325.4 kB / 363.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1203, allocations: 3.938 kB / 363.5 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.1205, allocations: 15.98 kB / 363.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003166/0.1208, allocations: 92.73 kB / 363.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.1208, allocations: 0 / 363.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00238/0.1232, allocations: 1.683 MB / 365.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1232, allocations: 3.938 kB / 365.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.1244, allocations: 365.5 kB / 365.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.666e-05/0.1245, allocations: 104.8 kB / 365.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.889e-05/0.1245, allocations: 192 / 365.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.1248, allocations: 39.95 kB / 365.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.1249, allocations: 15.98 kB / 365.8 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.1249, allocations: 7.984 kB / 365.8 MB, free: 3.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.1252, allocations: 202 kB / 366 MB, free: 3.402 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1252, allocations: 4 kB / 366 MB, free: 3.398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004103/0.1256, allocations: 71.84 kB / 366.1 MB, free: 3.328 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.000158/0.1257, allocations: 111.2 kB / 366.2 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.1268, allocations: 429.8 kB / 366.6 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1268, allocations: 0 / 366.6 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005007/0.1273, allocations: 243.1 kB / 366.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.1277, allocations: 52.34 kB / 366.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.129, allocations: 0.5811 MB / 367.5 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.1294, allocations: 0.7521 MB / 368.2 MB, free: 1.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.1296, allocations: 22.3 kB / 368.3 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.341e-05/0.1296, allocations: 23.44 kB / 368.3 MB, free: 1.027 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1296, allocations: 0 / 368.3 MB, free: 1.027 MB / 302.1 MB Notification: Performance of Templates: time 0.15/0.2796, allocations: 3.798 MB / 372.1 MB, free: 24.89 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches