Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.001648/0.001648, allocations: 124.5 kB / 17.79 MB, free: 5.266 MB / 14.72 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.00193/0.00193, allocations: 207.2 kB / 20.75 MB, free: 2.316 MB / 14.72 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 1.561/1.561, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 47.92 kB / 373.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1067, allocations: 53.34 MB / 426.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.004158/0.1109, allocations: 2.372 MB / 429.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.1121, allocations: 0.6428 MB / 429.8 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.1123, allocations: 7.938 kB / 429.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.1124, allocations: 43.58 kB / 429.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.1126, allocations: 75.34 kB / 429.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.1129, allocations: 59.91 kB / 430 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003252/0.1132, allocations: 258.8 kB / 430.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.1134, allocations: 64.3 kB / 430.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.1136, allocations: 123.5 kB / 430.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.1137, allocations: 99.55 kB / 430.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.1138, allocations: 16 kB / 430.5 MB, free: 496 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.191e-05/0.1139, allocations: 24 kB / 430.6 MB, free: 472 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.688e-05/0.1139, allocations: 47.78 kB / 430.6 MB, free: 424 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.114, allocations: 111.5 kB / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003634/0.1144, allocations: 266.8 kB / 431 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1144, allocations: 0 / 431 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1144, allocations: 0 / 431 MB, free: 44 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1144, allocations: 0 / 431 MB, free: 44 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.1926/0.307, allocations: 0.509 MB / 431.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.307, allocations: 9.875 kB / 431.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.3072, allocations: 37.61 kB / 431.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.3075, allocations: 244.1 kB / 431.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.3076, allocations: 16.69 kB / 431.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.76e-05/0.3076, allocations: 21.02 kB / 431.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.308, allocations: 208.8 kB / 432 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.308, allocations: 9.406 kB / 432 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/0.3081, allocations: 14.16 kB / 432 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.3081, allocations: 5.625 kB / 432 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/0.3084, allocations: 130.6 kB / 432.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009349/0.3093, allocations: 0.6993 MB / 432.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002776/0.3096, allocations: 139.2 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.3097, allocations: 66.7 kB / 433.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.3097, allocations: 1.469 kB / 433.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.682e-05/0.3097, allocations: 42.25 kB / 433.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.262e-06/0.3097, allocations: 0 / 433.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00138/0.3111, allocations: 0.8909 MB / 434 MB, free: 9.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.511e-05/0.3111, allocations: 57.44 kB / 434.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.3113, allocations: 178.7 kB / 434.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.3113, allocations: 30.3 kB / 434.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.3113, allocations: 145.9 kB / 434.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.343e-05/0.3114, allocations: 88.92 kB / 434.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.125e-05/0.3115, allocations: 52.94 kB / 434.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.985e-05/0.3115, allocations: 331.8 kB / 434.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.3116, allocations: 56.12 kB / 434.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.3117, allocations: 98.73 kB / 435 MB, free: 9.227 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.312, allocations: 168.4 kB / 435.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.312, allocations: 1.688 kB / 435.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004388/0.3124, allocations: 254.3 kB / 435.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3124, allocations: 6.5 kB / 435.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3124, allocations: 6.281 kB / 435.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001772/0.3126, allocations: 36.16 kB / 435.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00022/0.3128, allocations: 51.83 kB / 435.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009682/0.3138, allocations: 1.48 MB / 437 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.3139, allocations: 9.938 kB / 437 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.3139, allocations: 11.17 kB / 437 MB, free: 7.617 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.822e-05/0.314, allocations: 133.7 kB / 437.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.627e-05/0.3141, allocations: 25.06 kB / 437.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.891e-05/0.3141, allocations: 25.31 kB / 437.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3141, allocations: 3.281 kB / 437.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3141, allocations: 3.938 kB / 437.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3142, allocations: 0.7188 kB / 437.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007417/0.3149, allocations: 0.6538 MB / 437.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3149, allocations: 1.156 kB / 437.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002088/0.3151, allocations: 44.16 kB / 437.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001072/0.3152, allocations: 36.22 kB / 438 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.3152, allocations: 7.188 kB / 438 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007803/0.316, allocations: 1.486 MB / 439.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.316, allocations: 0.5625 kB / 439.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005148/0.3165, allocations: 404.6 kB / 439.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.255e-05/0.3166, allocations: 95.36 kB / 439.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.3166, allocations: 7.125 kB / 440 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.3167, allocations: 8.781 kB / 440 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.3168, allocations: 27.22 kB / 440 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.3168, allocations: 5.109 kB / 440 MB, free: 5.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.081e-05/0.3168, allocations: 133.8 kB / 440.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3168, allocations: 0 / 440.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.3172, allocations: 56.59 kB / 440.2 MB, free: 5.031 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.523e-05/0.3173, allocations: 102.9 kB / 440.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004926/0.3178, allocations: 285.7 kB / 440.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3178, allocations: 1.156 kB / 440.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.318, allocations: 207.9 kB / 440.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.3184, allocations: 40.42 kB / 440.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.3195, allocations: 0.6867 MB / 441.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.3196, allocations: 0.7507 MB / 442.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.537e-05/0.3197, allocations: 20.62 kB / 442.3 MB, free: 3.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.814e-05/0.3197, allocations: 21.97 kB / 442.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3197, allocations: 0 / 442.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of Templates: time 0.006885/0.3266, allocations: 2.467 MB / 444.7 MB, free: 3.25 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.86409268155694]