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.0008389/0.0008387, allocations: 92.16 kB / 17.3 MB, free: 6.391 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.0009324/0.0009324, allocations: 171.6 kB / 18.2 MB, free: 5.551 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.676/1.676, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0006474/0.0006477, allocations: 16 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1231, allocations: 47.58 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005723/0.1289, allocations: 5.247 MB / 334.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003145/0.1321, allocations: 1.445 MB / 335.7 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008399/0.1329, allocations: 12 kB / 335.7 MB, free: 13.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004999/0.1335, allocations: 119.1 kB / 335.8 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.1345, allocations: 234 kB / 336 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007927/0.1353, allocations: 311.6 kB / 336.3 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001463/0.1368, allocations: 1.167 MB / 337.5 MB, free: 11.19 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000607/0.1374, allocations: 346.7 kB / 337.8 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007225/0.1381, allocations: 382.5 kB / 338.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007719/0.1389, allocations: 458 kB / 338.6 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001936/0.1391, allocations: 59.94 kB / 338.7 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003131/0.1394, allocations: 91.97 kB / 338.8 MB, free: 9.859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.1396, allocations: 179.2 kB / 339 MB, free: 9.684 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005029/0.1401, allocations: 495.3 kB / 339.4 MB, free: 9.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.1412, allocations: 1.3 MB / 340.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1412, allocations: 0 / 340.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1413, allocations: 0 / 340.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.1413, allocations: 0 / 340.7 MB, free: 7.887 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.002262/0.1435, allocations: 1.146 MB / 341.9 MB, free: 6.691 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.1436, allocations: 12.03 kB / 341.9 MB, free: 6.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.1438, allocations: 103.8 kB / 342 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006108/0.1444, allocations: 0.5051 MB / 342.5 MB, free: 6.031 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.369e-05/0.1444, allocations: 62.38 kB / 342.6 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.1446, allocations: 88.22 kB / 342.7 MB, free: 5.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.1461, allocations: 0.8925 MB / 343.6 MB, free: 4.977 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.1461, allocations: 0 / 343.6 MB, free: 4.977 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.051e-05/0.1462, allocations: 36 kB / 343.6 MB, free: 4.941 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.1463, allocations: 23.94 kB / 343.6 MB, free: 4.918 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.1478, allocations: 0.812 MB / 344.4 MB, free: 4.105 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00482/0.1526, allocations: 3.096 MB / 347.5 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.1539, allocations: 0.6656 MB / 348.2 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007536/0.1547, allocations: 414.5 kB / 348.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.401e-05/0.1547, allocations: 16.48 kB / 348.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.1548, allocations: 47.12 kB / 348.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.756e-06/0.1548, allocations: 0 / 348.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004727/0.1595, allocations: 2.26 MB / 350.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.1596, allocations: 60.06 kB / 351 MB, free: 13.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006967/0.1603, allocations: 0.5028 MB / 351.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.492e-05/0.1604, allocations: 37.7 kB / 351.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/0.1607, allocations: 395.5 kB / 351.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/0.161, allocations: 252.3 kB / 352.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.1611, allocations: 73.69 kB / 352.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.1613, allocations: 378.8 kB / 352.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006095/0.1619, allocations: 313.9 kB / 352.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006651/0.1626, allocations: 445.1 kB / 353.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.164, allocations: 0.7701 MB / 354.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.164, allocations: 0 / 354.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002119/0.1661, allocations: 1.068 MB / 355.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.1662, allocations: 8 kB / 355.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.1662, allocations: 0 / 355.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005569/0.1667, allocations: 180.7 kB / 355.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007954/0.1675, allocations: 191.8 kB / 355.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003468/0.171, allocations: 2.611 MB / 358.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006342/0.1717, allocations: 36.05 kB / 358.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.854e-05/0.1717, allocations: 35.92 kB / 358.2 MB, free: 5.855 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.0003817/0.1721, allocations: 221.8 kB / 358.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.1722, allocations: 67.25 kB / 358.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001799/0.1724, allocations: 86.17 kB / 358.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.1724, allocations: 8 kB / 358.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.1725, allocations: 7.984 kB / 358.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1725, allocations: 7.922 kB / 358.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009619/0.1734, allocations: 0.8416 MB / 359.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1735, allocations: 0 / 359.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006808/0.1741, allocations: 155.8 kB / 359.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005091/0.1747, allocations: 176.7 kB / 359.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-05/0.1747, allocations: 27.98 kB / 359.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003341/0.1781, allocations: 2.608 MB / 362.4 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1781, allocations: 4 kB / 362.4 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002601/0.1807, allocations: 1.423 MB / 363.8 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/0.1809, allocations: 140.2 kB / 364 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.754e-05/0.181, allocations: 16 kB / 364 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005725/0.1816, allocations: 63.95 kB / 364 MB, free: 15.78 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.1817, allocations: 48.58 kB / 364.1 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.228e-05/0.1818, allocations: 23.98 kB / 364.1 MB, free: 15.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004321/0.1822, allocations: 358.8 kB / 364.5 MB, free: 15.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1822, allocations: 4 kB / 364.5 MB, free: 15.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007723/0.183, allocations: 224 kB / 364.7 MB, free: 15.14 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.0002371/0.1833, allocations: 131.2 kB / 364.8 MB, free: 15 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.1854, allocations: 1.026 MB / 365.8 MB, free: 13.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.1854, allocations: 3.984 kB / 365.8 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.1867, allocations: 0.6465 MB / 366.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000774/0.1875, allocations: 134.4 kB / 366.6 MB, free: 13.17 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/0.1906, allocations: 2.395 MB / 369 MB, free: 10.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.1911, allocations: 0.9539 MB / 370 MB, free: 9.754 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004017/0.1915, allocations: 85.05 kB / 370.1 MB, free: 9.668 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.1917, allocations: 51.42 kB / 370.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1917, allocations: 0 / 370.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of Templates: time 0.1742/0.3659, allocations: 9.726 MB / 379.8 MB, free: 51.93 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