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.001099/0.001099, allocations: 114.5 kB / 17.94 MB, free: 5.672 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.001175/0.001175, allocations: 193.8 kB / 18.86 MB, free: 4.754 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.486/1.486, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.001191/0.001191, allocations: 51.92 kB / 280.8 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.1004, allocations: 46.63 MB / 327.4 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006672/0.1071, allocations: 5.711 MB / 333.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.1097, allocations: 1.434 MB / 334.6 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004023/0.1101, allocations: 16 kB / 334.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003249/0.1105, allocations: 115.1 kB / 334.7 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004736/0.111, allocations: 238 kB / 334.9 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006702/0.1116, allocations: 315.7 kB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.1128, allocations: 1.238 MB / 336.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005314/0.1133, allocations: 413 kB / 336.9 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000496/0.1138, allocations: 462.5 kB / 337.3 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000531/0.1144, allocations: 0.5291 MB / 337.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001357/0.1145, allocations: 124 kB / 338 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002495/0.1148, allocations: 156 kB / 338.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.115, allocations: 255.2 kB / 338.4 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004515/0.1154, allocations: 0.5367 MB / 338.9 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009821/0.1164, allocations: 1.099 MB / 340 MB, free: 8.133 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1164, allocations: 3.938 kB / 340 MB, free: 8.129 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1165, allocations: 0 / 340 MB, free: 8.129 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.1165, allocations: 0 / 340 MB, free: 8.129 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.002433/0.1189, allocations: 1.29 MB / 341.3 MB, free: 6.785 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.119, allocations: 8.031 kB / 341.3 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.1191, allocations: 107.7 kB / 341.4 MB, free: 6.672 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006127/0.1198, allocations: 0.5012 MB / 341.9 MB, free: 6.129 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.447e-05/0.1198, allocations: 62.38 kB / 342 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.12, allocations: 84.28 kB / 342.1 MB, free: 5.988 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.1215, allocations: 0.8808 MB / 343 MB, free: 5.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.1215, allocations: 0 / 343 MB, free: 5.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.041e-05/0.1216, allocations: 39.98 kB / 343 MB, free: 5.051 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.1216, allocations: 24 kB / 343 MB, free: 5.027 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.1231, allocations: 0.7808 MB / 343.8 MB, free: 4.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00469/0.1278, allocations: 3.045 MB / 346.8 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1289, allocations: 0.6539 MB / 347.5 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006518/0.1296, allocations: 410.4 kB / 347.9 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.005e-05/0.1297, allocations: 12.55 kB / 347.9 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/0.1297, allocations: 47.11 kB / 348 MB, free: 15.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.365e-06/0.1297, allocations: 0 / 348 MB, free: 15.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004383/0.1341, allocations: 2.189 MB / 350.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.1342, allocations: 60.06 kB / 350.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.1348, allocations: 0.499 MB / 350.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.1348, allocations: 37.7 kB / 350.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.1351, allocations: 399.4 kB / 351.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001854/0.1353, allocations: 248.4 kB / 351.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002316/0.1355, allocations: 138.6 kB / 351.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1357, allocations: 378.8 kB / 351.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005882/0.1363, allocations: 301.9 kB / 352.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006594/0.137, allocations: 429.1 kB / 352.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.1382, allocations: 0.7467 MB / 353.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1382, allocations: 3.938 kB / 353.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001956/0.1402, allocations: 1.04 MB / 354.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.1403, allocations: 11.98 kB / 354.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.1403, allocations: 4 kB / 354.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000568/0.1408, allocations: 176.7 kB / 354.6 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007971/0.1417, allocations: 191.7 kB / 354.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.146, allocations: 2.862 MB / 357.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006883/0.1467, allocations: 28.05 kB / 357.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.843e-05/0.1468, allocations: 31.98 kB / 357.7 MB, free: 5.906 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.0003852/0.1472, allocations: 225.7 kB / 357.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.1473, allocations: 75.09 kB / 358 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.1475, allocations: 90.16 kB / 358.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.1475, allocations: 11.94 kB / 358.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/0.1475, allocations: 4 kB / 358.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1475, allocations: 3.984 kB / 358.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.1486, allocations: 0.8339 MB / 358.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1486, allocations: 0 / 358.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007743/0.1494, allocations: 147.8 kB / 359.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006223/0.1501, allocations: 175.3 kB / 359.2 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.04e-05/0.1501, allocations: 27.98 kB / 359.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004258/0.1544, allocations: 2.866 MB / 362.1 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1544, allocations: 3.938 kB / 362.1 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002749/0.1572, allocations: 1.388 MB / 363.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000209/0.1574, allocations: 128.4 kB / 363.6 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.1576, allocations: 23.98 kB / 363.7 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000764/0.1583, allocations: 47.97 kB / 363.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.1585, allocations: 56.52 kB / 363.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-05/0.1585, allocations: 23.98 kB / 363.8 MB, free: 15.54 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004542/0.159, allocations: 358.8 kB / 364.1 MB, free: 15.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.159, allocations: 0 / 364.1 MB, free: 15.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001096/0.1601, allocations: 224 kB / 364.4 MB, free: 14.98 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.0003315/0.1605, allocations: 131.2 kB / 364.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.1643, allocations: 1.025 MB / 365.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/0.1644, allocations: 4 kB / 365.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.1665, allocations: 0.6355 MB / 366.1 MB, free: 13.15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.1679, allocations: 134.5 kB / 366.3 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0056/0.1735, allocations: 2.29 MB / 368.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008508/0.1744, allocations: 0.95 MB / 369.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004068/0.1749, allocations: 59.41 kB / 369.6 MB, free: 9.656 MB / 318.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1749, allocations: 0 / 369.6 MB, free: 9.656 MB / 318.1 MB Notification: Performance of Templates: time 0.2411/0.416, allocations: 13.57 MB / 383.2 MB, free: 52.48 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/jenkins1/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