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.000995/0.000995, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001196/0.002191, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0008185/0.0008185, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001055/0.001873, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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 0.9414/0.9414, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1451/1.086, allocations: 49.5 MB / 220.7 MB, free: 1.352 MB / 218.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 1.322e-06/1.322e-06, allocations: 0 / 222 MB, free: 44 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.053e-05/1.185e-05, allocations: 2.312 kB / 222 MB, free: 40 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004164/0.004176, allocations: 5.554 MB / 227.6 MB, free: 10.45 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.006641, allocations: 1.488 MB / 229.1 MB, free: 8.949 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003318/0.006973, allocations: 19.94 kB / 229.1 MB, free: 8.93 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002343/0.007207, allocations: 162.4 kB / 229.2 MB, free: 8.77 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000412/0.007619, allocations: 293.2 kB / 229.5 MB, free: 8.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004728/0.008092, allocations: 351.3 kB / 229.9 MB, free: 8.137 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008215/0.008914, allocations: 1.292 MB / 231.1 MB, free: 6.84 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003062/0.00922, allocations: 285.4 kB / 231.4 MB, free: 6.535 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006174/0.009837, allocations: 0.7749 MB / 232.2 MB, free: 5.762 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003745/0.01021, allocations: 430.8 kB / 232.6 MB, free: 5.34 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.01033, allocations: 124 kB / 232.7 MB, free: 5.219 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002177/0.01054, allocations: 159.9 kB / 232.9 MB, free: 5.062 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.01066, allocations: 187.4 kB / 233.1 MB, free: 4.879 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002226/0.01088, allocations: 323.4 kB / 233.4 MB, free: 4.562 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000609/0.01149, allocations: 0.7904 MB / 234.2 MB, free: 3.77 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.197e-05/0.0115, allocations: 3.984 kB / 234.2 MB, free: 3.766 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.0115, allocations: 0 / 234.2 MB, free: 3.766 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.01151, allocations: 0 / 234.2 MB, free: 3.766 MB / 234.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.001375/0.01289, allocations: 1.415 MB / 235.6 MB, free: 2.32 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.01292, allocations: 8.031 kB / 235.6 MB, free: 2.312 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.01305, allocations: 136.8 kB / 235.8 MB, free: 2.18 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.01341, allocations: 347.2 kB / 236.1 MB, free: 1.816 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.01345, allocations: 62.38 kB / 236.2 MB, free: 1.758 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.545e-05/0.01353, allocations: 88.33 kB / 236.2 MB, free: 1.672 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006587/0.01419, allocations: 0.8129 MB / 237.1 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.01421, allocations: 192 / 237.1 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.7e-05/0.01425, allocations: 40.31 kB / 237.1 MB, free: 0.75 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.01427, allocations: 23.94 kB / 237.1 MB, free: 0.7266 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.0146, allocations: 257.8 kB / 237.4 MB, free: 488 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.01676, allocations: 2.013 MB / 239.4 MB, free: 14.38 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.01714, allocations: 359 kB / 239.7 MB, free: 14.02 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.0173, allocations: 162.7 kB / 239.9 MB, free: 13.86 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.01734, allocations: 12.66 kB / 239.9 MB, free: 13.85 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.01737, allocations: 43.22 kB / 239.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 3.006e-06/0.01737, allocations: 3.984 kB / 239.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=71): time 0.002272/0.01964, allocations: 1.498 MB / 241.4 MB, free: 12.25 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/0.01967, allocations: 60.06 kB / 241.5 MB, free: 12.18 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.01991, allocations: 431.1 kB / 241.9 MB, free: 11.75 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.01995, allocations: 45.7 kB / 242 MB, free: 11.7 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.02014, allocations: 341.7 kB / 242.3 MB, free: 11.36 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.02026, allocations: 273.6 kB / 242.6 MB, free: 11.09 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.02038, allocations: 138.5 kB / 242.7 MB, free: 10.95 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.8e-05/0.02048, allocations: 382.6 kB / 243.1 MB, free: 10.56 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.0206, allocations: 89.95 kB / 243.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.02078, allocations: 209.1 kB / 243.4 MB, free: 10.23 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003389/0.02112, allocations: 388.5 kB / 243.7 MB, free: 9.816 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.02112, allocations: 0 / 243.7 MB, free: 9.816 MB / 250.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0007061/0.02183, allocations: 0.4997 MB / 244.2 MB, free: 9.309 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.02184, allocations: 8 kB / 244.3 MB, free: 9.301 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.02185, allocations: 4.344 kB / 244.3 MB, free: 9.297 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002979/0.02215, allocations: 142.7 kB / 244.4 MB, free: 9.156 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004913/0.02264, allocations: 223.7 kB / 244.6 MB, free: 8.938 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.02415, allocations: 1.949 MB / 246.6 MB, free: 6.91 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.02434, allocations: 31.98 kB / 246.6 MB, free: 6.879 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.732e-05/0.02437, allocations: 19.98 kB / 246.6 MB, free: 6.859 MB / 250.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.0001338/0.0245, allocations: 157.7 kB / 246.8 MB, free: 6.695 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.915e-05/0.02457, allocations: 67.94 kB / 246.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.845e-05/0.02467, allocations: 85.86 kB / 246.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.02468, allocations: 8 kB / 246.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.02468, allocations: 4 kB / 246.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.02469, allocations: 3.984 kB / 246.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003805/0.02507, allocations: 414.6 kB / 247.3 MB, free: 6.098 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.02507, allocations: 0 / 247.3 MB, free: 6.098 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003903/0.02546, allocations: 191.6 kB / 247.5 MB, free: 5.91 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003104/0.02577, allocations: 55.56 kB / 247.6 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002579/0.02603, allocations: 136.8 kB / 247.7 MB, free: 5.719 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.02606, allocations: 23.98 kB / 247.7 MB, free: 5.695 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00141/0.02747, allocations: 1.953 MB / 249.7 MB, free: 3.664 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.02747, allocations: 0 / 249.7 MB, free: 3.664 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006769/0.02815, allocations: 0.6744 MB / 250.4 MB, free: 2.965 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.733e-05/0.0282, allocations: 19.94 kB / 250.4 MB, free: 2.945 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.0284, allocations: 43.97 kB / 250.4 MB, free: 2.902 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.791e-05/0.02847, allocations: 56.55 kB / 250.5 MB, free: 2.848 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/0.0285, allocations: 15.98 kB / 250.5 MB, free: 2.832 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000126/0.02862, allocations: 188.4 kB / 250.7 MB, free: 2.648 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02862, allocations: 0 / 250.7 MB, free: 2.648 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003869/0.02901, allocations: 224 kB / 250.9 MB, free: 2.43 MB / 250.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.0001461/0.02916, allocations: 116.4 kB / 251 MB, free: 2.305 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007014/0.02986, allocations: 0.6217 MB / 251.6 MB, free: 1.668 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/0.02988, allocations: 20.64 kB / 251.7 MB, free: 1.648 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004915/0.03037, allocations: 493.2 kB / 252.1 MB, free: 1.152 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006665/0.03103, allocations: 1.25 MB / 253.4 MB, free: 15.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004937/0.03597, allocations: 1.478 MB / 254.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.03609, allocations: 171.3 kB / 255 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.03629, allocations: 81.11 kB / 255.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000311/0.0366, allocations: 217.2 kB / 255.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.03661, allocations: 0 / 255.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of Templates: time 0.02104/0.05764, allocations: 12.46 MB / 267.8 MB, free: 1.207 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0410774555057287]