Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 107.2 kB / 17.16 MB, free: 6.312 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.001126/0.001126, allocations: 194 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.94 kB / 280 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1141, allocations: 46.62 MB / 326.6 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006747/0.1209, allocations: 5.702 MB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003826/0.1248, allocations: 1.442 MB / 333.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007221/0.1255, allocations: 15.94 kB / 333.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004624/0.1261, allocations: 115.1 kB / 333.9 MB, free: 13.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007802/0.1269, allocations: 238 kB / 334.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008689/0.1277, allocations: 303.7 kB / 334.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00115/0.1289, allocations: 1.175 MB / 335.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005445/0.1295, allocations: 362.7 kB / 335.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005056/0.13, allocations: 398.5 kB / 336.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004793/0.1305, allocations: 0.49 MB / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.1306, allocations: 68 kB / 336.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002324/0.1308, allocations: 99.97 kB / 337 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.131, allocations: 195.2 kB / 337.2 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004609/0.1315, allocations: 493.5 kB / 337.6 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.1326, allocations: 1.347 MB / 339 MB, free: 8.398 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1326, allocations: 0 / 339 MB, free: 8.398 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1326, allocations: 0 / 339 MB, free: 8.398 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.1326, allocations: 4 kB / 339 MB, free: 8.395 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002661/0.1353, allocations: 1.294 MB / 340.3 MB, free: 7.051 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.597e-05/0.1354, allocations: 8.031 kB / 340.3 MB, free: 7.043 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.1356, allocations: 103.7 kB / 340.4 MB, free: 6.941 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007572/0.1364, allocations: 0.5012 MB / 340.9 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.331e-05/0.1364, allocations: 58.38 kB / 341 MB, free: 6.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.1366, allocations: 88.27 kB / 341 MB, free: 6.254 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.1382, allocations: 0.8964 MB / 341.9 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.1382, allocations: 0 / 341.9 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.851e-05/0.1383, allocations: 32 kB / 342 MB, free: 5.312 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.1383, allocations: 20 kB / 342 MB, free: 5.293 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.14, allocations: 0.7847 MB / 342.8 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005226/0.1452, allocations: 3.052 MB / 345.8 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.1464, allocations: 0.65 MB / 346.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006693/0.1471, allocations: 406.4 kB / 346.9 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.466e-05/0.1472, allocations: 12.56 kB / 346.9 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.975e-05/0.1472, allocations: 39.12 kB / 346.9 MB, free: 228 kB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 4.178e-06/0.1472, allocations: 3.938 kB / 346.9 MB, free: 224 kB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004625/0.1519, allocations: 2.193 MB / 349.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.152, allocations: 64.06 kB / 349.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00063/0.1526, allocations: 0.4951 MB / 349.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.878e-05/0.1527, allocations: 37.7 kB / 349.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.1529, allocations: 395.4 kB / 350.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001923/0.1531, allocations: 252.4 kB / 350.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002213/0.1534, allocations: 134.6 kB / 350.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1536, allocations: 378.8 kB / 350.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006006/0.1542, allocations: 309.9 kB / 351.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006371/0.1548, allocations: 425.1 kB / 351.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.1562, allocations: 0.7389 MB / 352.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.1562, allocations: 8 kB / 352.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002197/0.1584, allocations: 1.036 MB / 353.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.1584, allocations: 4 kB / 353.4 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/0.1585, allocations: 7.984 kB / 353.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006836/0.1592, allocations: 185.7 kB / 353.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008771/0.16, allocations: 191.7 kB / 353.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004012/0.1641, allocations: 2.603 MB / 356.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008639/0.165, allocations: 35.98 kB / 356.4 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.898e-05/0.1651, allocations: 31.92 kB / 356.4 MB, free: 6.426 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005042/0.1656, allocations: 225.8 kB / 356.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.1657, allocations: 71.16 kB / 356.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.1659, allocations: 86.17 kB / 356.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.166, allocations: 4 kB / 356.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-05/0.166, allocations: 4.125 kB / 356.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.166, allocations: 3.984 kB / 356.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.1673, allocations: 0.8417 MB / 357.6 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.1673, allocations: 0 / 357.6 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007253/0.1681, allocations: 147.8 kB / 357.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005696/0.1686, allocations: 180.5 kB / 357.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.148e-05/0.1687, allocations: 23.98 kB / 358 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/0.1724, allocations: 2.609 MB / 360.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.1724, allocations: 0 / 360.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002672/0.1751, allocations: 1.388 MB / 362 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002792/0.1754, allocations: 132.4 kB / 362.1 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.1756, allocations: 27.91 kB / 362.1 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005818/0.1761, allocations: 47.97 kB / 362.2 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.1763, allocations: 56.52 kB / 362.2 MB, free: 360 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.595e-05/0.1764, allocations: 27.98 kB / 362.3 MB, free: 332 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004801/0.1769, allocations: 355.1 kB / 362.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1769, allocations: 0 / 362.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000848/0.1777, allocations: 223.9 kB / 362.8 MB, free: 15.76 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002737/0.178, allocations: 131.2 kB / 362.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002322/0.1803, allocations: 1.002 MB / 363.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.1804, allocations: 0.6875 kB / 364 MB, free: 14.61 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001479/0.1818, allocations: 0.6386 MB / 364.6 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008284/0.1827, allocations: 118.2 kB / 364.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.1863, allocations: 2.255 MB / 367 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000511/0.1868, allocations: 0.9538 MB / 367.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004096/0.1872, allocations: 77.08 kB / 368 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.1874, allocations: 51.41 kB / 368 MB, free: 10.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.293e-06/0.1874, allocations: 4 kB / 368 MB, free: 10.45 MB / 318.1 MB Notification: Performance of Templates: time 0.01862/0.2061, allocations: 9.89 MB / 377.9 MB, free: 0.5508 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches