Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.0009384/0.0009384, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001102/0.00204, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006241/0.0006241, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000977/0.001601, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8621/0.8621, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1556/1.018, allocations: 52.49 MB / 238.5 MB, free: 7.613 MB / 234.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.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.326e-06/8.326e-06, allocations: 4 kB / 239.7 MB, free: 6.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.591e-05/3.423e-05, allocations: 2.969 kB / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006146/0.00618, allocations: 5.268 MB / 245 MB, free: 1.07 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003677/0.009857, allocations: 2.092 MB / 247.1 MB, free: 14.99 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000785/0.01064, allocations: 47.62 kB / 247.1 MB, free: 14.94 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004481/0.01109, allocations: 214.1 kB / 247.4 MB, free: 14.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004546/0.01155, allocations: 185.4 kB / 247.5 MB, free: 14.55 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008603/0.01241, allocations: 402.9 kB / 247.9 MB, free: 14.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.0136, allocations: 1.029 MB / 249 MB, free: 13.12 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008877/0.01449, allocations: 406.5 kB / 249.4 MB, free: 12.7 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008188/0.0153, allocations: 0.5457 MB / 249.9 MB, free: 12.15 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003769/0.01568, allocations: 271.2 kB / 250.2 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.01579, allocations: 92.91 kB / 250.3 MB, free: 11.79 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002911/0.01608, allocations: 159.8 kB / 250.4 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.01623, allocations: 165.2 kB / 250.6 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.01647, allocations: 255.5 kB / 250.8 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007741/0.01724, allocations: 0.6265 MB / 251.4 MB, free: 10.6 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.333e-05/0.01725, allocations: 0 / 251.4 MB, free: 10.6 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.01726, allocations: 0 / 251.4 MB, free: 10.6 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.01728, allocations: 0.6562 kB / 251.4 MB, free: 10.6 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.001199/0.01847, allocations: 1.124 MB / 252.6 MB, free: 9.445 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.01851, allocations: 13.66 kB / 252.6 MB, free: 9.434 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.01866, allocations: 124.8 kB / 252.7 MB, free: 9.312 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005552/0.01921, allocations: 385 kB / 253.1 MB, free: 8.914 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.582e-05/0.01926, allocations: 62.38 kB / 253.1 MB, free: 8.855 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.667e-05/0.01936, allocations: 88.33 kB / 253.2 MB, free: 8.77 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007846/0.02014, allocations: 0.6815 MB / 253.9 MB, free: 8.027 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.477e-05/0.02018, allocations: 12.08 kB / 253.9 MB, free: 8.016 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.392e-05/0.02022, allocations: 36.38 kB / 254 MB, free: 7.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.891e-05/0.02024, allocations: 23.94 kB / 254 MB, free: 7.957 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/0.02064, allocations: 216.6 kB / 254.2 MB, free: 7.746 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.02287, allocations: 2.174 MB / 256.4 MB, free: 5.477 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005194/0.02339, allocations: 145.8 kB / 256.5 MB, free: 5.324 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.147e-05/0.02346, allocations: 52.83 kB / 256.6 MB, free: 5.27 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.188e-05/0.02355, allocations: 15.98 kB / 256.6 MB, free: 5.254 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.02358, allocations: 42.5 kB / 256.6 MB, free: 5.203 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 3.646e-06/0.02359, allocations: 0 / 256.6 MB, free: 5.203 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001637/0.02522, allocations: 0.8302 MB / 257.5 MB, free: 4.312 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.02525, allocations: 55.41 kB / 257.5 MB, free: 4.246 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.02546, allocations: 286.8 kB / 257.8 MB, free: 3.953 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.02548, allocations: 33.7 kB / 257.8 MB, free: 3.914 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.02565, allocations: 380.3 kB / 258.2 MB, free: 3.539 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.399e-05/0.02574, allocations: 138.8 kB / 258.3 MB, free: 3.402 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.712e-05/0.02584, allocations: 86.11 kB / 258.4 MB, free: 3.312 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.02594, allocations: 358.7 kB / 258.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.33e-05/0.026, allocations: 44.91 kB / 258.8 MB, free: 2.91 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.02616, allocations: 186.1 kB / 259 MB, free: 2.668 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.02643, allocations: 288.5 kB / 259.3 MB, free: 2.324 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.02643, allocations: 0 / 259.3 MB, free: 2.324 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003659/0.0268, allocations: 293.6 kB / 259.6 MB, free: 2.027 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.02682, allocations: 4 kB / 259.6 MB, free: 2.023 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.02683, allocations: 4.594 kB / 259.6 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001367/0.02696, allocations: 32.84 kB / 259.6 MB, free: 1.984 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/0.02731, allocations: 131.8 kB / 259.7 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002677/0.02757, allocations: 0.5444 MB / 260.3 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.02773, allocations: 16 kB / 260.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.02775, allocations: 16 kB / 260.3 MB, free: 1.254 MB / 250.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.0001541/0.02791, allocations: 140.5 kB / 260.4 MB, free: 1.105 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.02796, allocations: 35.97 kB / 260.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003144/0.02827, allocations: 206.8 kB / 260.7 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.02828, allocations: 7.938 kB / 260.7 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.02828, allocations: 0 / 260.7 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.02829, allocations: 3.938 kB / 260.7 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007703/0.02906, allocations: 0.5634 MB / 261.2 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.02906, allocations: 4 kB / 261.3 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.02936, allocations: 105.9 kB / 261.4 MB, free: 136 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.755e-05/0.02939, allocations: 27.77 kB / 261.4 MB, free: 108 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.53e-05/0.02949, allocations: 32.77 kB / 261.4 MB, free: 72 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.02951, allocations: 12 kB / 261.4 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002313/0.02974, allocations: 0.525 MB / 262 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.02975, allocations: 4 kB / 262 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.0301, allocations: 390.4 kB / 262.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.03014, allocations: 8 kB / 262.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.03024, allocations: 12.03 kB / 262.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.03029, allocations: 27.89 kB / 262.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.03031, allocations: 15.98 kB / 262.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.537e-05/0.0304, allocations: 100.6 kB / 262.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0304, allocations: 0 / 262.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004101/0.03081, allocations: 120 kB / 262.6 MB, free: 14.81 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.0001628/0.03097, allocations: 106.5 kB / 262.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003272/0.0313, allocations: 217.4 kB / 262.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.9e-05/0.03132, allocations: 8 kB / 262.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.03148, allocations: 114.4 kB / 263.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007167/0.0322, allocations: 0.6648 MB / 263.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007204/0.0394, allocations: 1.36 MB / 265.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.03954, allocations: 169.7 kB / 265.2 MB, free: 11.97 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001584/0.03969, allocations: 55.06 kB / 265.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.03985, allocations: 119.3 kB / 265.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of SimCode: time 1.383e-06/0.03985, allocations: 0 / 265.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Templates: time 0.009236/0.04909, allocations: 3.914 MB / 269.3 MB, free: 7.984 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.495056787505746]