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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 88.39 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 164.1 kB / 25.61 MB, free: 8.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.141/1.141, allocations: 158.6 MB / 187.5 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,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=5004,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.896e-06/2.896e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.413e-05/3.703e-05, allocations: 2.312 kB / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007442/0.007479, allocations: 5.483 MB / 257 MB, free: 1.715 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003676/0.01115, allocations: 1.43 MB / 258.4 MB, free: 284 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005198/0.01167, allocations: 15.94 kB / 258.4 MB, free: 268 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003382/0.01201, allocations: 162.4 kB / 258.6 MB, free: 104 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004992/0.01251, allocations: 289.2 kB / 258.9 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007026/0.01321, allocations: 363.3 kB / 259.2 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009269/0.01414, allocations: 1.28 MB / 260.5 MB, free: 14.18 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003213/0.01446, allocations: 273.4 kB / 260.8 MB, free: 13.89 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000598/0.01506, allocations: 0.7057 MB / 261.5 MB, free: 13.18 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000428/0.01549, allocations: 414.9 kB / 261.9 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.0156, allocations: 124 kB / 262 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.0158, allocations: 160 kB / 262.2 MB, free: 12.5 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.01594, allocations: 259.1 kB / 262.4 MB, free: 12.24 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002367/0.01618, allocations: 395.2 kB / 262.8 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006854/0.01686, allocations: 0.876 MB / 263.7 MB, free: 10.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.01687, allocations: 0 / 263.7 MB, free: 10.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.01687, allocations: 0 / 263.7 MB, free: 10.98 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.01688, allocations: 0 / 263.7 MB, free: 10.98 MB / 250.7 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.001556/0.01843, allocations: 1.341 MB / 265 MB, free: 9.598 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.01849, allocations: 8.031 kB / 265 MB, free: 9.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.01869, allocations: 176.3 kB / 265.2 MB, free: 9.418 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004934/0.01918, allocations: 469.9 kB / 265.6 MB, free: 8.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.993e-05/0.01922, allocations: 58.38 kB / 265.7 MB, free: 8.871 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.01932, allocations: 88.33 kB / 265.8 MB, free: 8.785 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008007/0.02012, allocations: 0.8094 MB / 266.6 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.02014, allocations: 192 / 266.6 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.339e-05/0.02019, allocations: 36.38 kB / 266.6 MB, free: 7.871 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.02021, allocations: 23.94 kB / 266.7 MB, free: 7.848 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003897/0.0206, allocations: 301.6 kB / 267 MB, free: 7.551 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002836/0.02344, allocations: 2.503 MB / 269.5 MB, free: 4.953 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000463/0.0239, allocations: 390.8 kB / 269.8 MB, free: 4.559 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.0241, allocations: 181.5 kB / 270 MB, free: 4.379 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.02415, allocations: 16.64 kB / 270 MB, free: 4.363 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.02418, allocations: 42.05 kB / 270.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 2.925e-06/0.02419, allocations: 0 / 270.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of matching and sorting (n=71): time 0.001893/0.02608, allocations: 1.23 MB / 271.3 MB, free: 3.047 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.02612, allocations: 68.05 kB / 271.4 MB, free: 2.969 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.02645, allocations: 482.4 kB / 271.8 MB, free: 2.48 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.02649, allocations: 41.7 kB / 271.9 MB, free: 2.434 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002379/0.02673, allocations: 459 kB / 272.3 MB, free: 1.977 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.02687, allocations: 257.8 kB / 272.6 MB, free: 1.723 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.02703, allocations: 148.2 kB / 272.7 MB, free: 1.566 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.02721, allocations: 0.5467 MB / 273.3 MB, free: 1.008 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.02737, allocations: 105.9 kB / 273.4 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.0276, allocations: 263 kB / 273.6 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004473/0.02805, allocations: 422.6 kB / 274 MB, free: 140 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.02805, allocations: 0 / 274 MB, free: 140 kB / 250.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0008593/0.02891, allocations: 0.641 MB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.02893, allocations: 16 kB / 274.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.02894, allocations: 3.938 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003501/0.02929, allocations: 147.3 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004217/0.02971, allocations: 183.8 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/0.03199, allocations: 2.674 MB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003217/0.03231, allocations: 24 kB / 277.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.585e-05/0.03235, allocations: 24.05 kB / 277.7 MB, free: 12.31 MB / 266.7 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.0002349/0.03258, allocations: 200.5 kB / 277.9 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.0327, allocations: 99.52 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.415e-05/0.03279, allocations: 81.88 kB / 278.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.0328, allocations: 8 kB / 278.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.662e-05/0.03281, allocations: 4 kB / 278.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.03282, allocations: 3.984 kB / 278.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006146/0.03343, allocations: 442 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.03344, allocations: 0 / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/0.0338, allocations: 143.8 kB / 278.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003345/0.03413, allocations: 163.3 kB / 278.9 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/0.03417, allocations: 23.98 kB / 278.9 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002071/0.03624, allocations: 2.67 MB / 281.6 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.03624, allocations: 3.938 kB / 281.6 MB, free: 8.332 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009699/0.03721, allocations: 0.8371 MB / 282.4 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.389e-05/0.0373, allocations: 59.56 kB / 282.5 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.073e-05/0.03735, allocations: 19.94 kB / 282.5 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.03759, allocations: 43.97 kB / 282.5 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.327e-05/0.03768, allocations: 60.48 kB / 282.6 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.03771, allocations: 19.98 kB / 282.6 MB, free: 7.273 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001888/0.0379, allocations: 310.7 kB / 282.9 MB, free: 6.973 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.0379, allocations: 0 / 282.9 MB, free: 6.973 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005907/0.03849, allocations: 220 kB / 283.1 MB, free: 6.758 MB / 266.7 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.0002086/0.0387, allocations: 135.2 kB / 283.3 MB, free: 6.617 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009866/0.03969, allocations: 0.7044 MB / 284 MB, free: 5.898 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.03969, allocations: 0 / 284 MB, free: 5.898 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000591/0.04028, allocations: 0.5175 MB / 284.5 MB, free: 5.359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.04072, allocations: 134.3 kB / 284.6 MB, free: 5.227 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.04279, allocations: 1.604 MB / 286.2 MB, free: 3.582 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.04291, allocations: 163.1 kB / 286.4 MB, free: 3.398 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002155/0.04313, allocations: 84.81 kB / 286.5 MB, free: 3.316 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.04343, allocations: 222.1 kB / 286.7 MB, free: 3.098 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.04343, allocations: 4 kB / 286.7 MB, free: 3.094 MB / 266.7 MB Notification: Performance of Templates: time 0.01554/0.05898, allocations: 11.1 MB / 297.8 MB, free: 8.023 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4009576900862157]