Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 75.91 kB / 21.18 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.089/1.089, allocations: 173.4 MB / 201.1 MB, free: 9.352 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.OpAmps.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Adder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.033e-05/3.243e-05, allocations: 6.25 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.003534/0.003566, allocations: 3.187 MB / 271.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.004698, allocations: 0.7401 MB / 272 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.004849, allocations: 7.938 kB / 272 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.005017, allocations: 67.36 kB / 272 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.005185, allocations: 115 kB / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003068/0.005492, allocations: 127.8 kB / 272.3 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003836/0.005876, allocations: 461.9 kB / 272.7 MB, free: 1.691 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.006104, allocations: 108.4 kB / 272.8 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.006388, allocations: 255.5 kB / 273.1 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.006554, allocations: 143.6 kB / 273.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.482e-05/0.006609, allocations: 47.94 kB / 273.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.259e-05/0.006652, allocations: 44 kB / 273.3 MB, free: 1.105 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.992e-05/0.006712, allocations: 87.67 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.006814, allocations: 135.7 kB / 273.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.007111, allocations: 287 kB / 273.8 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.007115, allocations: 4 kB / 273.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.007117, allocations: 0 / 273.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.007123, allocations: 0 / 273.8 MB, free: 0.6016 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0007908/0.007913, allocations: 0.6752 MB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.007956, allocations: 8.922 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.209e-05/0.008048, allocations: 76.59 kB / 274.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.008337, allocations: 247.8 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.008358, allocations: 28.97 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.471e-05/0.008393, allocations: 36.31 kB / 274.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004124/0.008805, allocations: 353.1 kB / 275.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.008818, allocations: 4.188 kB / 275.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.444e-05/0.008842, allocations: 16.38 kB / 275.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.008855, allocations: 11.94 kB / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.009049, allocations: 127.8 kB / 275.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.01052, allocations: 1.116 MB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.01078, allocations: 131.2 kB / 276.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.889e-05/0.01085, allocations: 55.66 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.01087, allocations: 4 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.0109, allocations: 33.39 kB / 276.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.0109, allocations: 0 / 276.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007849/0.01168, allocations: 368.7 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.01171, allocations: 51.41 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/0.01191, allocations: 308.2 kB / 277.4 MB, free: 12.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.01193, allocations: 33.7 kB / 277.5 MB, free: 12.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.01205, allocations: 266.9 kB / 277.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.01208, allocations: 55.52 kB / 277.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/0.01214, allocations: 55.31 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.01229, allocations: 0.5079 MB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.969e-05/0.01235, allocations: 23.98 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.01247, allocations: 152.2 kB / 278.5 MB, free: 11.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.01266, allocations: 190.9 kB / 278.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.01266, allocations: 0 / 278.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003835/0.01304, allocations: 276.7 kB / 279 MB, free: 11.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.01306, allocations: 4 kB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.01307, allocations: 4 kB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003485/0.01342, allocations: 99.89 kB / 279.1 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.642e-05/0.01351, allocations: 47.91 kB / 279.1 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.01508, allocations: 2.278 MB / 281.4 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.01519, allocations: 31.78 kB / 281.4 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.01521, allocations: 15.94 kB / 281.4 MB, free: 8.469 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 (22): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001045/0.01531, allocations: 172.5 kB / 281.6 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.01535, allocations: 27.86 kB / 281.6 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.094e-05/0.01538, allocations: 25.77 kB / 281.7 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.01538, allocations: 7.984 kB / 281.7 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.01539, allocations: 4 kB / 281.7 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.01539, allocations: 3.984 kB / 281.7 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005634/0.01596, allocations: 0.5399 MB / 282.2 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.01596, allocations: 0 / 282.2 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.12e-05/0.016, allocations: 8 kB / 282.2 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002428/0.01624, allocations: 103.5 kB / 282.3 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.01626, allocations: 11.98 kB / 282.3 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/0.01793, allocations: 2.243 MB / 284.6 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.01793, allocations: 320 / 284.6 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003218/0.01826, allocations: 353.7 kB / 284.9 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.713e-05/0.01828, allocations: 23.84 kB / 284.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.0183, allocations: 3.938 kB / 285 MB, free: 4.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.231e-05/0.01839, allocations: 19.98 kB / 285 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.994e-05/0.01844, allocations: 19.97 kB / 285 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.01845, allocations: 4 kB / 285 MB, free: 4.707 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001204/0.01857, allocations: 213.1 kB / 285.2 MB, free: 4.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01857, allocations: 0 / 285.2 MB, free: 4.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000348/0.01892, allocations: 91.78 kB / 285.3 MB, free: 4.41 MB / 266.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 (8): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001258/0.01904, allocations: 99.23 kB / 285.4 MB, free: 4.305 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000456/0.0195, allocations: 329.2 kB / 285.7 MB, free: 3.961 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.0195, allocations: 0 / 285.7 MB, free: 3.961 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.01968, allocations: 252.3 kB / 286 MB, free: 3.695 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.01997, allocations: 38.97 kB / 286 MB, free: 3.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.02105, allocations: 0.5107 MB / 286.5 MB, free: 3.121 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.114e-05/0.02112, allocations: 84.31 kB / 286.6 MB, free: 3.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.309e-05/0.02118, allocations: 30.27 kB / 286.6 MB, free: 2.988 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.02122, allocations: 16.5 kB / 286.6 MB, free: 2.973 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.02122, allocations: 0 / 286.6 MB, free: 2.973 MB / 266.7 MB Notification: Performance of Templates: time 0.1182/0.1394, allocations: 3.266 MB / 289.9 MB, free: 28.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Adder/Adder.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.1692944234237075]