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.001024/0.001024, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.00105/0.00105, allocations: 169.9 kB / 24.91 MB, free: 9.195 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 1.1/1.1, allocations: 177.1 MB / 205.3 MB, free: 5.5 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.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.052e-06/1.052e-06, allocations: 0 / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.344e-05/1.449e-05, allocations: 2.312 kB / 273.5 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004542/0.004557, allocations: 5.234 MB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002862/0.007419, allocations: 2.164 MB / 280.9 MB, free: 9.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005243/0.007943, allocations: 51.56 kB / 280.9 MB, free: 9.789 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004594/0.008403, allocations: 202.2 kB / 281.1 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002931/0.008696, allocations: 178.3 kB / 281.3 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006217/0.009317, allocations: 406.8 kB / 281.7 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007431/0.01006, allocations: 1.044 MB / 282.7 MB, free: 7.965 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.0105, allocations: 413.5 kB / 283.1 MB, free: 7.527 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005028/0.011, allocations: 0.5302 MB / 283.7 MB, free: 6.996 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.01128, allocations: 271.2 kB / 283.9 MB, free: 6.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.104e-05/0.01136, allocations: 92 kB / 284 MB, free: 6.641 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001953/0.01155, allocations: 163.8 kB / 284.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.01168, allocations: 203.3 kB / 284.4 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.01187, allocations: 299.3 kB / 284.7 MB, free: 5.988 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005577/0.01243, allocations: 0.681 MB / 285.4 MB, free: 5.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.01243, allocations: 0 / 285.4 MB, free: 5.305 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.01243, allocations: 0 / 285.4 MB, free: 5.305 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.01244, allocations: 4 kB / 285.4 MB, free: 5.301 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.0007826/0.01323, allocations: 0.9593 MB / 286.3 MB, free: 4.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/0.01326, allocations: 8.031 kB / 286.3 MB, free: 4.309 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.01344, allocations: 132.8 kB / 286.5 MB, free: 4.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/0.01388, allocations: 397 kB / 286.9 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.01391, allocations: 62.38 kB / 286.9 MB, free: 3.703 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.112e-05/0.01398, allocations: 88.33 kB / 287 MB, free: 3.617 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005586/0.01454, allocations: 0.5946 MB / 287.6 MB, free: 2.984 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.01457, allocations: 12.11 kB / 287.6 MB, free: 2.973 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.0146, allocations: 36.38 kB / 287.6 MB, free: 2.938 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.01462, allocations: 23.94 kB / 287.7 MB, free: 2.914 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002982/0.01491, allocations: 216.6 kB / 287.9 MB, free: 2.699 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.01668, allocations: 2.151 MB / 290 MB, free: 468 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.01693, allocations: 147.2 kB / 290.2 MB, free: 304 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.93e-05/0.01698, allocations: 52.83 kB / 290.2 MB, free: 248 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.582e-05/0.01703, allocations: 15.98 kB / 290.2 MB, free: 232 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.01705, allocations: 42.55 kB / 290.3 MB, free: 180 kB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.233e-06/0.01705, allocations: 0 / 290.3 MB, free: 180 kB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.09629/0.1133, allocations: 0.7922 MB / 291.1 MB, free: 26.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.758e-05/0.1134, allocations: 56.5 kB / 291.1 MB, free: 26.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.1135, allocations: 301.8 kB / 291.4 MB, free: 26.12 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.1136, allocations: 32.39 kB / 291.5 MB, free: 26.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.1137, allocations: 377.7 kB / 291.8 MB, free: 25.92 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/0.1137, allocations: 144.4 kB / 292 MB, free: 25.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.888e-05/0.1138, allocations: 92.53 kB / 292.1 MB, free: 25.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.17e-05/0.1139, allocations: 354.8 kB / 292.4 MB, free: 25.51 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.097e-05/0.1139, allocations: 40.77 kB / 292.4 MB, free: 25.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.32e-05/0.114, allocations: 185.9 kB / 292.6 MB, free: 25.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.1142, allocations: 283.7 kB / 292.9 MB, free: 25.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1142, allocations: 2.625 kB / 292.9 MB, free: 25.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002711/0.1145, allocations: 282.3 kB / 293.2 MB, free: 25.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.1145, allocations: 7.031 kB / 293.2 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1145, allocations: 5.469 kB / 293.2 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001155/0.1146, allocations: 35.16 kB / 293.2 MB, free: 25.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.1149, allocations: 127.7 kB / 293.4 MB, free: 25.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001527/0.115, allocations: 0.5374 MB / 293.9 MB, free: 24.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.1e-05/0.1151, allocations: 16.89 kB / 293.9 MB, free: 24.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.1151, allocations: 18.22 kB / 293.9 MB, free: 24.61 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.0001102/0.1152, allocations: 139.8 kB / 294.1 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.1153, allocations: 32.47 kB / 294.1 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00023/0.1155, allocations: 207.7 kB / 294.3 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1155, allocations: 4.406 kB / 294.3 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.1155, allocations: 1.312 kB / 294.3 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1155, allocations: 2.656 kB / 294.3 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005716/0.1161, allocations: 0.5655 MB / 294.9 MB, free: 24.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1161, allocations: 4.719 kB / 294.9 MB, free: 24.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002175/0.1163, allocations: 96.34 kB / 295 MB, free: 24.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.097e-05/0.1164, allocations: 24.25 kB / 295 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.1164, allocations: 14.72 kB / 295 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001136/0.1165, allocations: 0.5337 MB / 295.5 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1165, allocations: 5.031 kB / 295.5 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.1168, allocations: 377.2 kB / 295.9 MB, free: 23.47 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/0.1168, allocations: 31.95 kB / 295.9 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.1168, allocations: 8.781 kB / 296 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.72e-05/0.1169, allocations: 7.969 kB / 296 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.1169, allocations: 30.11 kB / 296 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.117, allocations: 11.03 kB / 296 MB, free: 23.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.296e-05/0.117, allocations: 110.3 kB / 296.1 MB, free: 23.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.117, allocations: 1 kB / 296.1 MB, free: 23.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002787/0.1173, allocations: 121.5 kB / 296.2 MB, free: 23.43 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.0001074/0.1174, allocations: 117.7 kB / 296.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002543/0.1177, allocations: 204.1 kB / 296.5 MB, free: 23.33 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.1177, allocations: 4.875 kB / 296.5 MB, free: 23.33 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.704e-05/0.1178, allocations: 98.53 kB / 296.6 MB, free: 23.31 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.118, allocations: 72.8 kB / 296.7 MB, free: 23.31 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.1192, allocations: 1.169 MB / 297.9 MB, free: 22.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.258e-05/0.1193, allocations: 150.8 kB / 298 MB, free: 22.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.1194, allocations: 50.39 kB / 298.1 MB, free: 22.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.1196, allocations: 122.9 kB / 298.2 MB, free: 22.5 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1196, allocations: 4 kB / 298.2 MB, free: 22.5 MB / 266.7 MB Notification: Performance of Templates: time 0.006744/0.1263, allocations: 4.032 MB / 302.2 MB, free: 21.85 MB / 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 -s gbode -gbm=radauIIA3 -emit_protected -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.7237009680829942]