Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.0009344/0.0009344, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001247/0.002182, allocations: 449.7 kB / 10.37 MB, free: 328 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.0009099/0.0009099, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001158/0.002068, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9623/0.9623, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07989/1.042, allocations: 53.65 MB / 243.3 MB, free: 15.57 MB / 250.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.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.207e-05/1.372e-05, allocations: 2.312 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004513/0.004527, allocations: 5.268 MB / 249.8 MB, free: 9.016 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.007169, allocations: 2.175 MB / 252 MB, free: 6.828 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003492/0.007519, allocations: 51.56 kB / 252 MB, free: 6.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.00782, allocations: 210.1 kB / 252.2 MB, free: 6.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002577/0.008078, allocations: 186.2 kB / 252.4 MB, free: 6.387 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005333/0.008611, allocations: 414.8 kB / 252.8 MB, free: 5.98 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009225/0.009534, allocations: 1.021 MB / 253.8 MB, free: 4.953 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004074/0.009941, allocations: 413.5 kB / 254.2 MB, free: 4.523 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004567/0.0104, allocations: 0.5497 MB / 254.8 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.01064, allocations: 271.2 kB / 255.1 MB, free: 3.707 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.508e-05/0.01072, allocations: 92 kB / 255.1 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.01091, allocations: 155.8 kB / 255.3 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.01101, allocations: 167.5 kB / 255.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.01119, allocations: 247.5 kB / 255.7 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005292/0.01172, allocations: 0.642 MB / 256.3 MB, free: 2.414 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.629e-05/0.01173, allocations: 0 / 256.3 MB, free: 2.414 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.01173, allocations: 4 kB / 256.4 MB, free: 2.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.01175, allocations: 0 / 256.4 MB, free: 2.41 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.0009538/0.0127, allocations: 1.123 MB / 257.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.01273, allocations: 12.03 kB / 257.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.01295, allocations: 213.9 kB / 257.7 MB, free: 1.02 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004274/0.01337, allocations: 389 kB / 258.1 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/0.01341, allocations: 66.38 kB / 258.1 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.211e-05/0.01348, allocations: 88.36 kB / 258.2 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005701/0.01405, allocations: 0.6023 MB / 258.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.01408, allocations: 12.12 kB / 258.8 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.01411, allocations: 36.38 kB / 258.9 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.01413, allocations: 23.94 kB / 258.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/0.01441, allocations: 212.6 kB / 259.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.0163, allocations: 2.174 MB / 261.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.01658, allocations: 147.2 kB / 261.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.975e-05/0.01663, allocations: 48.84 kB / 261.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.011e-05/0.0167, allocations: 23.92 kB / 261.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.01672, allocations: 34.56 kB / 261.5 MB, free: 13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.963e-06/0.01672, allocations: 0 / 261.5 MB, free: 13 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001119/0.01784, allocations: 0.797 MB / 262.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/0.01787, allocations: 55.41 kB / 262.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.01803, allocations: 299.2 kB / 262.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.01804, allocations: 33.7 kB / 262.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.01819, allocations: 388.2 kB / 263.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.553e-05/0.01825, allocations: 146.8 kB / 263.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.903e-05/0.01833, allocations: 90.09 kB / 263.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.749e-05/0.01843, allocations: 354.7 kB / 263.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.962e-05/0.01848, allocations: 40.97 kB / 263.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.01859, allocations: 190.1 kB / 263.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002042/0.0188, allocations: 276.7 kB / 264.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.0188, allocations: 0 / 264.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002718/0.01907, allocations: 290 kB / 264.4 MB, free: 9.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.01909, allocations: 8.094 kB / 264.4 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.0191, allocations: 4 kB / 264.5 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001105/0.01921, allocations: 32.83 kB / 264.5 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.01946, allocations: 131.8 kB / 264.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002348/0.0197, allocations: 0.5444 MB / 265.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.958e-05/0.01979, allocations: 16 kB / 265.2 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.01981, allocations: 16 kB / 265.2 MB, free: 9.066 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.01993, allocations: 140.6 kB / 265.3 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.01996, allocations: 31.97 kB / 265.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002316/0.02019, allocations: 203.3 kB / 265.6 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.0202, allocations: 7.938 kB / 265.6 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.0202, allocations: 0 / 265.6 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.0202, allocations: 3.938 kB / 265.6 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006012/0.02081, allocations: 0.5727 MB / 266.1 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.02081, allocations: 4.031 kB / 266.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.02106, allocations: 99.88 kB / 266.2 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.717e-05/0.02109, allocations: 31.77 kB / 266.3 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.629e-05/0.02116, allocations: 20.84 kB / 266.3 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.02118, allocations: 8 kB / 266.3 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001865/0.02137, allocations: 0.5328 MB / 266.8 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.02137, allocations: 4 kB / 266.8 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003694/0.02174, allocations: 381.9 kB / 267.2 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.02177, allocations: 8 kB / 267.2 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.592e-05/0.02184, allocations: 8 kB / 267.2 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/0.02188, allocations: 23.95 kB / 267.3 MB, free: 6.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.02189, allocations: 8 kB / 267.3 MB, free: 6.875 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.127e-05/0.02196, allocations: 112.7 kB / 267.4 MB, free: 6.762 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02196, allocations: 0 / 267.4 MB, free: 6.762 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002778/0.02224, allocations: 123.9 kB / 267.5 MB, free: 6.641 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001357/0.02238, allocations: 104.3 kB / 267.6 MB, free: 6.531 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002477/0.02262, allocations: 197.3 kB / 267.8 MB, free: 6.336 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/0.02264, allocations: 8 kB / 267.8 MB, free: 6.328 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.599e-05/0.02273, allocations: 110.6 kB / 267.9 MB, free: 6.219 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.02302, allocations: 101.8 kB / 268 MB, free: 6.121 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005322/0.02834, allocations: 1.372 MB / 269.4 MB, free: 4.695 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.02846, allocations: 165.7 kB / 269.5 MB, free: 4.516 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001337/0.02859, allocations: 51.25 kB / 269.6 MB, free: 4.469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.02872, allocations: 111.4 kB / 269.7 MB, free: 4.359 MB / 266.7 MB Notification: Performance of SimCode: time 1.793e-06/0.02872, allocations: 0 / 269.7 MB, free: 4.359 MB / 266.7 MB Notification: Performance of Templates: time 0.008403/0.03712, allocations: 4.191 MB / 273.9 MB, free: 264 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.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.51074280962348]