Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.001056/0.001056, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001242/0.001242, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9664/0.9664, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 273.1 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.941e-05/2.095e-05, allocations: 2.312 kB / 273.1 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00351/0.003531, allocations: 3.386 MB / 276.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.005065, allocations: 0.8453 MB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.005253, allocations: 7.938 kB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.00542, allocations: 67.41 kB / 277.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.005615, allocations: 126.8 kB / 277.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003361/0.005951, allocations: 143.8 kB / 277.7 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.006368, allocations: 0.5211 MB / 278.2 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.006568, allocations: 121.3 kB / 278.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003486/0.006917, allocations: 291.4 kB / 278.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/0.007093, allocations: 155.5 kB / 278.7 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.261e-05/0.007145, allocations: 48 kB / 278.8 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.513e-05/0.007221, allocations: 56 kB / 278.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.007272, allocations: 95.66 kB / 278.9 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.007383, allocations: 159.6 kB / 279.1 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.007706, allocations: 322.9 kB / 279.4 MB, free: 11.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.00771, allocations: 0 / 279.4 MB, free: 11.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.007711, allocations: 3.938 kB / 279.4 MB, free: 11.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.007717, allocations: 4 kB / 279.4 MB, free: 11.46 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0007472/0.008464, allocations: 0.7182 MB / 280.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.008502, allocations: 16.02 kB / 280.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.008669, allocations: 80.66 kB / 280.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.008973, allocations: 272.8 kB / 280.5 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.008994, allocations: 25.38 kB / 280.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.307e-05/0.009027, allocations: 36.38 kB / 280.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.009447, allocations: 411.9 kB / 281 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.009458, allocations: 3.938 kB / 281 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.009482, allocations: 16 kB / 281 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.009492, allocations: 15.94 kB / 281 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.009701, allocations: 137.9 kB / 281.1 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.01097, allocations: 1.279 MB / 282.4 MB, free: 8.277 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.01124, allocations: 163.2 kB / 282.6 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.356e-05/0.0113, allocations: 43.66 kB / 282.6 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.01132, allocations: 4 kB / 282.6 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.01134, allocations: 41.39 kB / 282.7 MB, free: 8.004 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.01134, allocations: 0 / 282.7 MB, free: 8.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007886/0.01213, allocations: 392.6 kB / 283 MB, free: 7.605 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.01216, allocations: 55.41 kB / 283.1 MB, free: 7.539 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.01237, allocations: 316.2 kB / 283.4 MB, free: 7.215 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.01238, allocations: 25.7 kB / 283.4 MB, free: 7.184 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.0125, allocations: 286.8 kB / 283.7 MB, free: 6.898 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.01253, allocations: 55.53 kB / 283.8 MB, free: 6.844 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.823e-05/0.01259, allocations: 59.3 kB / 283.8 MB, free: 6.777 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.01271, allocations: 0.5078 MB / 284.3 MB, free: 6.258 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.191e-05/0.01277, allocations: 35.98 kB / 284.4 MB, free: 6.223 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.898e-05/0.01287, allocations: 136.5 kB / 284.5 MB, free: 6.043 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.01303, allocations: 195.6 kB / 284.7 MB, free: 5.809 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01303, allocations: 0 / 284.7 MB, free: 5.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003595/0.01339, allocations: 288.4 kB / 285 MB, free: 5.512 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.01341, allocations: 8 kB / 285 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.01342, allocations: 8 kB / 285 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003322/0.01375, allocations: 123.6 kB / 285.1 MB, free: 5.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.608e-05/0.01383, allocations: 35.92 kB / 285.1 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001912/0.01575, allocations: 4.006 MB / 289.1 MB, free: 1.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.347e-05/0.01584, allocations: 23.84 kB / 289.2 MB, free: 1.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.01585, allocations: 12 kB / 289.2 MB, free: 1.055 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 9.861e-05/0.01595, allocations: 180.4 kB / 289.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.01599, allocations: 27.86 kB / 289.4 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.857e-05/0.01601, allocations: 30.11 kB / 289.4 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.01601, allocations: 0 / 289.4 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.01602, allocations: 0 / 289.4 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.01602, allocations: 3.984 kB / 289.4 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.01622, allocations: 256.4 kB / 289.7 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01622, allocations: 0 / 289.7 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-05/0.01626, allocations: 15.94 kB / 289.7 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000236/0.0165, allocations: 119.3 kB / 289.8 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.0165, allocations: 4 kB / 289.8 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.01814, allocations: 3.936 MB / 293.7 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01814, allocations: 0 / 293.7 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.01844, allocations: 366.3 kB / 294.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.693e-05/0.01847, allocations: 31.73 kB / 294.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.01849, allocations: 8 kB / 294.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.104e-05/0.01858, allocations: 20.02 kB / 294.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.801e-05/0.01863, allocations: 19.97 kB / 294.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.01863, allocations: 3.938 kB / 294.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001239/0.01876, allocations: 225 kB / 294.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01876, allocations: 0 / 294.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003154/0.01907, allocations: 99.78 kB / 294.5 MB, free: 11.41 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 9.985e-05/0.01917, allocations: 99.25 kB / 294.6 MB, free: 11.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005071/0.01968, allocations: 0.5064 MB / 295.1 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.01968, allocations: 4.625 kB / 295.1 MB, free: 10.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.0199, allocations: 419.2 kB / 295.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.02016, allocations: 38.98 kB / 295.5 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009324/0.02109, allocations: 0.5376 MB / 296.1 MB, free: 9.703 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.096e-05/0.02116, allocations: 92.3 kB / 296.2 MB, free: 9.594 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.525e-05/0.02122, allocations: 22.3 kB / 296.2 MB, free: 9.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.02126, allocations: 20.5 kB / 296.2 MB, free: 9.551 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02126, allocations: 0 / 296.2 MB, free: 9.551 MB / 282.7 MB Notification: Performance of Templates: time 0.005787/0.02705, allocations: 3.706 MB / 299.9 MB, free: 5.902 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.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: 2.8168339640833437]