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.001045/0.001045, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001009/0.001009, allocations: 192 kB / 18.51 MB, free: 4.508 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.358/1.358, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001221/0.001221, allocations: 55.92 kB / 280.6 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08455/0.08579, allocations: 46.63 MB / 327.3 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006318/0.09214, allocations: 5.707 MB / 333 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002946/0.09512, allocations: 1.445 MB / 334.4 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008585/0.09601, allocations: 16 kB / 334.4 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005617/0.09665, allocations: 162.4 kB / 334.6 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000897/0.09756, allocations: 273.4 kB / 334.9 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007615/0.09833, allocations: 355.5 kB / 335.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00111/0.09945, allocations: 1.238 MB / 336.5 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005463/0.1, allocations: 417 kB / 336.9 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000532/0.1005, allocations: 458.5 kB / 337.3 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000553/0.1011, allocations: 0.5291 MB / 337.8 MB, free: 9.836 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.1013, allocations: 124 kB / 338 MB, free: 9.715 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.1015, allocations: 160 kB / 338.1 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001816/0.1017, allocations: 251.2 kB / 338.4 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004516/0.1022, allocations: 0.5367 MB / 338.9 MB, free: 8.773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.1034, allocations: 1.402 MB / 340.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1034, allocations: 4 kB / 340.3 MB, free: 7.363 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1034, allocations: 0 / 340.3 MB, free: 7.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.1034, allocations: 0 / 340.3 MB, free: 7.363 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.002363/0.1058, allocations: 1.282 MB / 341.6 MB, free: 6.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1058, allocations: 16.03 kB / 341.6 MB, free: 6.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.106, allocations: 103.7 kB / 341.7 MB, free: 5.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005778/0.1066, allocations: 0.5012 MB / 342.2 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/0.1066, allocations: 62.38 kB / 342.3 MB, free: 5.309 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.1068, allocations: 80.28 kB / 342.3 MB, free: 5.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.1082, allocations: 0.8847 MB / 343.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1083, allocations: 4 kB / 343.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.868e-05/0.1083, allocations: 35.98 kB / 343.3 MB, free: 4.289 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.1084, allocations: 20 kB / 343.3 MB, free: 4.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.1098, allocations: 0.7847 MB / 344.1 MB, free: 3.488 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004861/0.1146, allocations: 3.053 MB / 347.1 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.1159, allocations: 0.6387 MB / 347.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006901/0.1166, allocations: 410.3 kB / 348.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-05/0.1167, allocations: 20.48 kB / 348.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.1167, allocations: 43.12 kB / 348.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 5.049e-06/0.1167, allocations: 0 / 348.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004492/0.1212, allocations: 2.189 MB / 350.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.1213, allocations: 64 kB / 350.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007587/0.1221, allocations: 0.5029 MB / 351 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.628e-05/0.1222, allocations: 41.7 kB / 351 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002999/0.1225, allocations: 399.4 kB / 351.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.1227, allocations: 248.4 kB / 351.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.1229, allocations: 138.6 kB / 351.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1231, allocations: 378.8 kB / 352.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005601/0.1237, allocations: 301.9 kB / 352.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006819/0.1243, allocations: 425.1 kB / 352.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.1256, allocations: 0.7428 MB / 353.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1256, allocations: 0 / 353.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001922/0.1275, allocations: 1.044 MB / 354.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1276, allocations: 4 kB / 354.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1276, allocations: 4 kB / 354.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005535/0.1281, allocations: 188.7 kB / 354.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007474/0.1289, allocations: 179.8 kB / 355 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003512/0.1324, allocations: 2.879 MB / 357.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005475/0.133, allocations: 28.05 kB / 357.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.393e-05/0.1331, allocations: 35.98 kB / 358 MB, free: 5.125 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.0003296/0.1334, allocations: 217.8 kB / 358.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.1335, allocations: 71.16 kB / 358.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000153/0.1337, allocations: 86.17 kB / 358.3 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.1337, allocations: 11.94 kB / 358.3 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.1337, allocations: 4 kB / 358.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1337, allocations: 3.984 kB / 358.3 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008973/0.1346, allocations: 0.8339 MB / 359.2 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1346, allocations: 0 / 359.2 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006656/0.1353, allocations: 151.8 kB / 359.3 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005003/0.1358, allocations: 186.7 kB / 359.5 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.1359, allocations: 19.98 kB / 359.5 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003378/0.1393, allocations: 2.858 MB / 362.4 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1393, allocations: 3.938 kB / 362.4 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.1416, allocations: 1.384 MB / 363.8 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.1418, allocations: 140.3 kB / 363.9 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.111e-05/0.1419, allocations: 16 kB / 363.9 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000526/0.1424, allocations: 51.95 kB / 364 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.1425, allocations: 56.52 kB / 364 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/0.1426, allocations: 23.92 kB / 364.1 MB, free: 14.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003992/0.143, allocations: 358.9 kB / 364.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.143, allocations: 0 / 364.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006999/0.1437, allocations: 228.2 kB / 364.6 MB, free: 14.21 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.000228/0.1439, allocations: 127.3 kB / 364.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002267/0.1462, allocations: 1.033 MB / 365.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1462, allocations: 0.6875 kB / 365.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.1475, allocations: 0.6309 MB / 366.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006742/0.1481, allocations: 130.3 kB / 366.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002733/0.1509, allocations: 1.913 MB / 368.5 MB, free: 10.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.1513, allocations: 0.95 MB / 369.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003089/0.1516, allocations: 85.05 kB / 369.5 MB, free: 9.25 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.1518, allocations: 51.42 kB / 369.5 MB, free: 9.203 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1518, allocations: 0 / 369.5 MB, free: 9.203 MB / 318.1 MB Notification: Performance of Templates: time 0.1676/0.3194, allocations: 10.41 MB / 380 MB, free: 52.37 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches