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.001276/0.001276, allocations: 109 kB / 16.62 MB, free: 6.809 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.001112/0.001112, allocations: 189.8 kB / 17.55 MB, free: 5.949 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.375/1.375, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009914/0.0009914, allocations: 45.38 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1064, allocations: 49.45 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.005944/0.1124, allocations: 2.966 MB / 352.6 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.1142, allocations: 0.7168 MB / 353.3 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001935/0.1144, allocations: 4 kB / 353.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002041/0.1147, allocations: 39.69 kB / 353.3 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.115, allocations: 91.36 kB / 353.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.1153, allocations: 99.86 kB / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005628/0.1159, allocations: 422.4 kB / 353.9 MB, free: 404 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003002/0.1162, allocations: 119.3 kB / 354 MB, free: 284 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.1164, allocations: 159.4 kB / 354.2 MB, free: 124 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.1167, allocations: 167.3 kB / 354.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.699e-05/0.1168, allocations: 40 kB / 354.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.902e-05/0.1169, allocations: 40 kB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.352e-05/0.117, allocations: 83.69 kB / 354.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002234/0.1172, allocations: 179.1 kB / 354.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005802/0.1178, allocations: 454.7 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1178, allocations: 4 kB / 355.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1178, allocations: 0 / 355.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1179, allocations: 3.938 kB / 355.1 MB, free: 15.17 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.001735/0.1196, allocations: 0.6691 MB / 355.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.1197, allocations: 15.89 kB / 355.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.1198, allocations: 32.56 kB / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004858/0.1203, allocations: 295.6 kB / 356.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.1203, allocations: 16.94 kB / 356.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.886e-05/0.1204, allocations: 28.31 kB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.1214, allocations: 328 kB / 356.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.1215, allocations: 0 / 356.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/0.1215, allocations: 16 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.1216, allocations: 8 kB / 356.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.1227, allocations: 286 kB / 356.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.1254, allocations: 1.162 MB / 358 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.1265, allocations: 250.5 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004668/0.127, allocations: 104.8 kB / 358.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.1271, allocations: 4 kB / 358.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007148/0.1278, allocations: 186.5 kB / 358.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.014e-06/0.1278, allocations: 0 / 358.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003033/0.1308, allocations: 0.6608 MB / 359.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/0.1309, allocations: 102.8 kB / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004175/0.1314, allocations: 290.5 kB / 359.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.895e-05/0.1314, allocations: 29.7 kB / 359.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.1316, allocations: 199.6 kB / 359.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.194e-05/0.1317, allocations: 39.45 kB / 359.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.1318, allocations: 57.84 kB / 359.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.132, allocations: 330.8 kB / 360.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004707/0.1325, allocations: 108.4 kB / 360.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005299/0.133, allocations: 200.9 kB / 360.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007601/0.1338, allocations: 318.2 kB / 360.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1338, allocations: 4 kB / 360.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001155/0.135, allocations: 471.5 kB / 361.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.135, allocations: 41.77 kB / 361.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.135, allocations: 4 kB / 361.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003797/0.1354, allocations: 80.8 kB / 361.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.1356, allocations: 51.91 kB / 361.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/0.1383, allocations: 1.99 MB / 363.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.1386, allocations: 55.78 kB / 363.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/0.1387, allocations: 12 kB / 363.5 MB, free: 6.25 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.0001685/0.1389, allocations: 161.6 kB / 363.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.1389, allocations: 27.92 kB / 363.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.571e-05/0.139, allocations: 21.84 kB / 363.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.139, allocations: 3.938 kB / 363.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.139, allocations: 7.922 kB / 363.7 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.139, allocations: 4 kB / 363.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.1393, allocations: 325.4 kB / 364 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1393, allocations: 0 / 364 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.1395, allocations: 23.97 kB / 364.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002717/0.1397, allocations: 84.8 kB / 364.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.1398, allocations: 0 / 364.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002175/0.1419, allocations: 1.812 MB / 366 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.142, allocations: 0 / 366 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.143, allocations: 364.8 kB / 366.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.974e-05/0.1431, allocations: 104.8 kB / 366.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.1431, allocations: 4 kB / 366.4 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.1434, allocations: 35.95 kB / 366.5 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.272e-05/0.1435, allocations: 19.98 kB / 366.5 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.1435, allocations: 4 kB / 366.5 MB, free: 3.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002025/0.1437, allocations: 201.9 kB / 366.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1437, allocations: 0 / 366.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003982/0.1441, allocations: 83.75 kB / 366.8 MB, free: 2.754 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.0001573/0.1443, allocations: 111.2 kB / 366.9 MB, free: 2.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.1454, allocations: 430.3 kB / 367.3 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1454, allocations: 0 / 367.3 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004779/0.1459, allocations: 234.5 kB / 367.5 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.1462, allocations: 59.69 kB / 367.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.1474, allocations: 0.5862 MB / 368.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.1478, allocations: 0.7595 MB / 368.9 MB, free: 500 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.148, allocations: 22.3 kB / 368.9 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.272e-05/0.148, allocations: 23.44 kB / 369 MB, free: 456 kB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.148, allocations: 0 / 369 MB, free: 456 kB / 302.1 MB Notification: Performance of Templates: time 0.1617/0.3097, allocations: 4.013 MB / 373 MB, free: 25.13 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