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.001019/0.001019, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.001013/0.001014, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.514/1.514, allocations: 223.2 MB / 241.1 MB, free: 5.348 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002781/0.0002783, allocations: 6.562 kB / 300.7 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 50.41 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003338/0.1187, allocations: 2.39 MB / 353.5 MB, free: 9.348 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1199, allocations: 0.7134 MB / 354.2 MB, free: 8.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.1201, allocations: 7.938 kB / 354.3 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.09e-05/0.1201, allocations: 35.75 kB / 354.3 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002568/0.1204, allocations: 107.7 kB / 354.4 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.1207, allocations: 71.8 kB / 354.5 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003205/0.121, allocations: 263.4 kB / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.1212, allocations: 93.81 kB / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.1214, allocations: 123.5 kB / 354.9 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.1216, allocations: 143.4 kB / 355.1 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.938e-05/0.1216, allocations: 16 kB / 355.1 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.554e-05/0.1217, allocations: 16 kB / 355.1 MB, free: 7.766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.94e-05/0.1218, allocations: 51.77 kB / 355.2 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.786e-05/0.1218, allocations: 81.58 kB / 355.2 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000316/0.1222, allocations: 347 kB / 355.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1222, allocations: 0 / 355.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1222, allocations: 0 / 355.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1222, allocations: 4 kB / 355.6 MB, free: 7.285 MB / 286.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.00125/0.1234, allocations: 0.6457 MB / 356.2 MB, free: 6.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.1235, allocations: 8.031 kB / 356.2 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.089e-05/0.1236, allocations: 35.62 kB / 356.3 MB, free: 6.539 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003979/0.124, allocations: 294.4 kB / 356.6 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.124, allocations: 20.56 kB / 356.6 MB, free: 6.191 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/0.1241, allocations: 27.98 kB / 356.6 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007485/0.1249, allocations: 339.6 kB / 356.9 MB, free: 5.824 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1249, allocations: 4 kB / 356.9 MB, free: 5.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.1249, allocations: 11.95 kB / 356.9 MB, free: 5.809 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.1249, allocations: 8 kB / 357 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008216/0.1258, allocations: 306.1 kB / 357.3 MB, free: 5.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.1277, allocations: 1.185 MB / 358.4 MB, free: 4.234 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008722/0.1285, allocations: 294.4 kB / 358.7 MB, free: 3.938 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.1286, allocations: 4 kB / 358.7 MB, free: 3.934 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005678/0.1292, allocations: 189.9 kB / 358.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.244e-06/0.1292, allocations: 0 / 358.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002476/0.1317, allocations: 0.7332 MB / 359.6 MB, free: 2.965 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.1317, allocations: 106.8 kB / 359.8 MB, free: 2.836 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.1321, allocations: 278.7 kB / 360 MB, free: 2.555 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.1321, allocations: 29.92 kB / 360.1 MB, free: 2.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.1323, allocations: 199.5 kB / 360.2 MB, free: 2.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.849e-05/0.1323, allocations: 51.38 kB / 360.3 MB, free: 2.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.1324, allocations: 4 kB / 360.3 MB, free: 2.266 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1325, allocations: 338.8 kB / 360.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.1329, allocations: 120.4 kB / 360.8 MB, free: 1.805 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004216/0.1333, allocations: 216.8 kB / 361 MB, free: 1.551 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003929/0.1337, allocations: 161.6 kB / 361.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1337, allocations: 0 / 361.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001237/0.135, allocations: 0.5017 MB / 361.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.666e-05/0.135, allocations: 33.7 kB / 361.7 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.135, allocations: 4 kB / 361.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004366/0.1355, allocations: 96.86 kB / 361.8 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.1357, allocations: 47.91 kB / 361.8 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00315/0.1389, allocations: 1.862 MB / 363.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.1393, allocations: 71.7 kB / 363.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.1393, allocations: 8 kB / 363.7 MB, free: 14.61 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000167/0.1395, allocations: 145.8 kB / 363.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.743e-05/0.1395, allocations: 27.72 kB / 363.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.1396, allocations: 25.83 kB / 363.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1396, allocations: 7.938 kB / 363.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.1396, allocations: 0 / 363.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.1396, allocations: 0 / 363.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003022/0.1399, allocations: 333.3 kB / 364.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1399, allocations: 0 / 364.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.1401, allocations: 36.09 kB / 364.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002651/0.1403, allocations: 80.75 kB / 364.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.1404, allocations: 7.984 kB / 364.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00226/0.1426, allocations: 1.737 MB / 366.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1426, allocations: 0 / 366.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.1438, allocations: 412.3 kB / 366.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.779e-05/0.1439, allocations: 104.8 kB / 366.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.1439, allocations: 4 kB / 366.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.1442, allocations: 43.95 kB / 366.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.318e-05/0.1443, allocations: 24.3 kB / 366.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.1443, allocations: 4 kB / 366.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.1445, allocations: 202 kB / 366.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.845e-06/0.1445, allocations: 4 kB / 366.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003955/0.1449, allocations: 75.78 kB / 367 MB, free: 11.14 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001785/0.1451, allocations: 113.7 kB / 367.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.1461, allocations: 461.8 kB / 367.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1462, allocations: 0 / 367.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004632/0.1466, allocations: 243.2 kB / 367.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.1469, allocations: 44.53 kB / 367.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.1479, allocations: 0.5844 MB / 368.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.1483, allocations: 0.7599 MB / 369.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.1484, allocations: 26.28 kB / 369.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.656e-05/0.1484, allocations: 19.44 kB / 369.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1485, allocations: 0 / 369.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of Templates: time 0.007474/0.1559, allocations: 3.649 MB / 372.9 MB, free: 5.184 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches