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.00115/0.001149, allocations: 103.6 kB / 17.59 MB, free: 5.562 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.001109/0.001109, allocations: 191.3 kB / 18.52 MB, free: 4.641 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.352/1.352, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 47.17 kB / 301.3 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 49.45 MB / 350.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004469/0.1058, allocations: 2.918 MB / 353.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.1074, allocations: 0.7401 MB / 354.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002967/0.1077, allocations: 4 kB / 354.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.108, allocations: 47.52 kB / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003173/0.1083, allocations: 107.2 kB / 354.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.1087, allocations: 115.8 kB / 354.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005041/0.1092, allocations: 414.4 kB / 355.1 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003005/0.1095, allocations: 135.2 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.1098, allocations: 159.4 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.1101, allocations: 167.3 kB / 355.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.36e-05/0.1102, allocations: 40 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.697e-05/0.1103, allocations: 40 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.765e-05/0.1104, allocations: 75.75 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002023/0.1106, allocations: 179.1 kB / 355.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004725/0.111, allocations: 450.7 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1111, allocations: 4 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1111, allocations: 0 / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.1111, allocations: 4 kB / 356.3 MB, free: 14.81 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.001569/0.1127, allocations: 0.6691 MB / 357 MB, free: 14.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1127, allocations: 12.03 kB / 357 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.1128, allocations: 32.56 kB / 357 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.1132, allocations: 303.5 kB / 357.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.1133, allocations: 16.94 kB / 357.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.192e-05/0.1133, allocations: 28.38 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007745/0.1141, allocations: 324 kB / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.1141, allocations: 4 kB / 357.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.1142, allocations: 8 kB / 357.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1142, allocations: 8 kB / 357.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008685/0.115, allocations: 286 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.1171, allocations: 1.158 MB / 359.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008894/0.118, allocations: 250.5 kB / 359.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.1184, allocations: 104.8 kB / 359.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.1184, allocations: 7.984 kB / 359.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005725/0.119, allocations: 185.4 kB / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.384e-06/0.119, allocations: 0 / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002488/0.1215, allocations: 0.6629 MB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.1216, allocations: 106.8 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.1219, allocations: 290.5 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1219, allocations: 25.7 kB / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.1221, allocations: 195.7 kB / 360.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.015e-05/0.1221, allocations: 39.45 kB / 361 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.1222, allocations: 53.84 kB / 361 MB, free: 9.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1224, allocations: 338.8 kB / 361.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/0.1227, allocations: 108.3 kB / 361.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004351/0.1232, allocations: 210 kB / 361.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000747/0.124, allocations: 307.8 kB / 362 MB, free: 8.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.124, allocations: 0 / 362 MB, free: 8.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001366/0.1253, allocations: 479.5 kB / 362.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.716e-05/0.1254, allocations: 33.7 kB / 362.5 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1254, allocations: 4 kB / 362.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004148/0.1258, allocations: 84.86 kB / 362.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.1261, allocations: 47.91 kB / 362.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00279/0.1289, allocations: 1.994 MB / 364.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003916/0.1293, allocations: 51.94 kB / 364.6 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.956e-05/0.1293, allocations: 12.06 kB / 364.7 MB, free: 5.902 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.000184/0.1295, allocations: 161.5 kB / 364.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.1296, allocations: 27.7 kB / 364.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.512e-05/0.1296, allocations: 25.97 kB / 364.9 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1297, allocations: 0 / 364.9 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1297, allocations: 4 kB / 364.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.1297, allocations: 3.984 kB / 364.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003201/0.13, allocations: 317.4 kB / 365.2 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.13, allocations: 0 / 365.2 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.1302, allocations: 35.91 kB / 365.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003012/0.1305, allocations: 76.8 kB / 365.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.1305, allocations: 4 kB / 365.3 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002412/0.1329, allocations: 1.813 MB / 367.1 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1329, allocations: 4 kB / 367.1 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.1341, allocations: 369.4 kB / 367.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.982e-05/0.1342, allocations: 104.8 kB / 367.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.1343, allocations: 0 / 367.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.1346, allocations: 31.97 kB / 367.6 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.1347, allocations: 23.97 kB / 367.6 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.1347, allocations: 4 kB / 367.6 MB, free: 2.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002345/0.1349, allocations: 205.9 kB / 367.8 MB, free: 2.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1349, allocations: 4 kB / 367.8 MB, free: 2.477 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004483/0.1354, allocations: 75.75 kB / 367.9 MB, free: 2.402 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.0001637/0.1356, allocations: 103.2 kB / 368 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.1367, allocations: 433.7 kB / 368.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1367, allocations: 0.6875 kB / 368.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005134/0.1373, allocations: 234.5 kB / 368.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.1377, allocations: 62.23 kB / 368.7 MB, free: 1.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.1388, allocations: 0.5157 MB / 369.2 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.1392, allocations: 0.7595 MB / 370 MB, free: 208 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.44e-05/0.1393, allocations: 19.44 kB / 370 MB, free: 188 kB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1393, allocations: 0 / 370 MB, free: 188 kB / 302.1 MB Notification: Performance of Templates: time 0.1615/0.3008, allocations: 4.733 MB / 374.8 MB, free: 24.71 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/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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches