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.001161/0.001161, allocations: 110.2 kB / 18.25 MB, free: 4.883 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.00119/0.00119, allocations: 199.3 kB / 19.18 MB, free: 3.961 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.516/1.516, allocations: 205.1 MB / 225.1 MB, free: 12.29 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.001255/0.001255, allocations: 55.92 kB / 281.3 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09869/0.09996, allocations: 46.63 MB / 328 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007097/0.1071, allocations: 5.7 MB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003193/0.1104, allocations: 1.449 MB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005368/0.111, allocations: 15.94 kB / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003797/0.1114, allocations: 158.4 kB / 335.3 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006125/0.112, allocations: 277.4 kB / 335.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007832/0.1128, allocations: 355.4 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001265/0.1141, allocations: 1.23 MB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005789/0.1147, allocations: 421 kB / 337.5 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006263/0.1153, allocations: 462.5 kB / 338 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005537/0.1159, allocations: 0.5253 MB / 338.5 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.1161, allocations: 127.9 kB / 338.6 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002818/0.1164, allocations: 164 kB / 338.8 MB, free: 9.547 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000198/0.1166, allocations: 243.2 kB / 339 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000474/0.1171, allocations: 0.5406 MB / 339.6 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.1183, allocations: 1.406 MB / 341 MB, free: 7.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1183, allocations: 0 / 341 MB, free: 7.355 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1184, allocations: 0 / 341 MB, free: 7.355 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.175e-05/0.1184, allocations: 0 / 341 MB, free: 7.355 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.002582/0.121, allocations: 1.282 MB / 342.3 MB, free: 6.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.121, allocations: 8.031 kB / 342.3 MB, free: 6.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.1212, allocations: 103.7 kB / 342.4 MB, free: 5.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000635/0.1219, allocations: 0.509 MB / 342.9 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.745e-05/0.1219, allocations: 58.38 kB / 342.9 MB, free: 5.305 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.1221, allocations: 84.28 kB / 343 MB, free: 5.223 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.1236, allocations: 0.8847 MB / 343.9 MB, free: 4.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.1236, allocations: 0 / 343.9 MB, free: 4.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-05/0.1237, allocations: 36 kB / 343.9 MB, free: 4.285 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.1237, allocations: 20 kB / 344 MB, free: 4.266 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.1253, allocations: 0.7808 MB / 344.7 MB, free: 3.488 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004905/0.1302, allocations: 3.06 MB / 347.8 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.1314, allocations: 0.6426 MB / 348.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007047/0.1321, allocations: 414.3 kB / 348.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.002e-05/0.1322, allocations: 8.562 kB / 348.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.1322, allocations: 47.06 kB / 348.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 4.899e-06/0.1322, allocations: 3.984 kB / 348.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004688/0.1369, allocations: 2.185 MB / 351.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.137, allocations: 64.06 kB / 351.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005934/0.1376, allocations: 0.499 MB / 351.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.708e-05/0.1377, allocations: 41.7 kB / 351.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/0.1379, allocations: 391.4 kB / 352.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.1381, allocations: 256.4 kB / 352.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002222/0.1383, allocations: 134.6 kB / 352.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1385, allocations: 374.8 kB / 352.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006427/0.1391, allocations: 317.8 kB / 353.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007317/0.1399, allocations: 421.1 kB / 353.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.1413, allocations: 0.7428 MB / 354.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.1413, allocations: 4 kB / 354.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002151/0.1435, allocations: 1.04 MB / 355.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1435, allocations: 4 kB / 355.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.1435, allocations: 4 kB / 355.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006042/0.1441, allocations: 185.8 kB / 355.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008476/0.145, allocations: 187.8 kB / 355.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004025/0.149, allocations: 2.864 MB / 358.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007497/0.1498, allocations: 36.03 kB / 358.6 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.15, allocations: 31.98 kB / 358.6 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.0004674/0.1504, allocations: 221.8 kB / 358.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.1506, allocations: 71.16 kB / 358.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.1508, allocations: 90.16 kB / 359 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.1508, allocations: 7.938 kB / 359 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.1509, allocations: 4 kB / 359 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.1509, allocations: 3.984 kB / 359 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.152, allocations: 0.8339 MB / 359.9 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.152, allocations: 4 kB / 359.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007848/0.1528, allocations: 147.8 kB / 360 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005668/0.1534, allocations: 180.6 kB / 360.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-05/0.1535, allocations: 19.98 kB / 360.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003846/0.1573, allocations: 2.862 MB / 363.1 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.1574, allocations: 3.938 kB / 363.1 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002799/0.1602, allocations: 1.385 MB / 364.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002128/0.1604, allocations: 136.3 kB / 364.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.1606, allocations: 16 kB / 364.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006712/0.1612, allocations: 55.95 kB / 364.7 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.1614, allocations: 56.52 kB / 364.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.555e-05/0.1615, allocations: 23.98 kB / 364.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004502/0.1619, allocations: 354.8 kB / 365.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1619, allocations: 0 / 365.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008447/0.1628, allocations: 228 kB / 365.3 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.0002393/0.163, allocations: 139.2 kB / 365.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002641/0.1657, allocations: 1.033 MB / 366.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1657, allocations: 0 / 366.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001509/0.1672, allocations: 0.6232 MB / 367.1 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.0008806/0.1681, allocations: 126.4 kB / 367.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.1715, allocations: 1.954 MB / 369.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005365/0.1721, allocations: 0.9577 MB / 370.1 MB, free: 9.277 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/0.1724, allocations: 59.41 kB / 370.2 MB, free: 9.223 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1724, allocations: 0 / 370.2 MB, free: 9.223 MB / 318.1 MB Notification: Performance of Templates: time 0.1618/0.3342, allocations: 13.57 MB / 383.8 MB, free: 52.88 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","/var/lib/jenkins1/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