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.0009045/0.0009045, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009221/0.0009221, allocations: 148.2 kB / 24.9 MB, free: 9.156 MB / 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.05/1.05, allocations: 173.3 MB / 201.5 MB, free: 9.227 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.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 1.914e-06/1.914e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.506e-05, allocations: 6.312 kB / 268.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004878/0.004903, allocations: 5.226 MB / 273.7 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002875/0.007779, allocations: 2.086 MB / 275.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003726/0.008151, allocations: 51.56 kB / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003446/0.008496, allocations: 198.2 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.00878, allocations: 194.2 kB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006383/0.009419, allocations: 391 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007583/0.01018, allocations: 1.044 MB / 277.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000466/0.01064, allocations: 409.5 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004988/0.01114, allocations: 0.5185 MB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002959/0.01144, allocations: 283.2 kB / 278.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.76e-05/0.01152, allocations: 92 kB / 279 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.01171, allocations: 151.9 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.01184, allocations: 211.3 kB / 279.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.01202, allocations: 295.3 kB / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006266/0.01265, allocations: 0.6771 MB / 280.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.01265, allocations: 3.938 kB / 280.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.01265, allocations: 0 / 280.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.01266, allocations: 0 / 280.3 MB, free: 10.31 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.0008103/0.01347, allocations: 0.9517 MB / 281.2 MB, free: 9.336 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.0135, allocations: 8.922 kB / 281.2 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.01361, allocations: 128.8 kB / 281.4 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.01402, allocations: 389 kB / 281.8 MB, free: 8.797 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.01406, allocations: 62.38 kB / 281.8 MB, free: 8.734 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.93e-05/0.01414, allocations: 96.25 kB / 281.9 MB, free: 8.641 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005945/0.01473, allocations: 0.5907 MB / 282.5 MB, free: 8.012 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.01476, allocations: 12.11 kB / 282.5 MB, free: 8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.01479, allocations: 36.38 kB / 282.5 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.01481, allocations: 23.94 kB / 282.6 MB, free: 7.941 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.0151, allocations: 220.6 kB / 282.8 MB, free: 7.723 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.01673, allocations: 2.147 MB / 284.9 MB, free: 5.484 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002592/0.01699, allocations: 150.2 kB / 285.1 MB, free: 5.328 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.086e-05/0.01704, allocations: 48.78 kB / 285.1 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.975e-05/0.0171, allocations: 15.98 kB / 285.1 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.01713, allocations: 42.56 kB / 285.2 MB, free: 5.211 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.252e-06/0.01713, allocations: 3.938 kB / 285.2 MB, free: 5.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.00108/0.01821, allocations: 0.8027 MB / 286 MB, free: 4.344 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.01824, allocations: 63.34 kB / 286.1 MB, free: 4.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.0184, allocations: 290.8 kB / 286.3 MB, free: 3.973 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.01841, allocations: 33.7 kB / 286.4 MB, free: 3.934 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.01855, allocations: 384.3 kB / 286.7 MB, free: 3.555 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.239e-05/0.01861, allocations: 138.8 kB / 286.9 MB, free: 3.418 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.219e-05/0.01869, allocations: 90.16 kB / 287 MB, free: 3.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.076e-05/0.01878, allocations: 354.7 kB / 287.3 MB, free: 2.965 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.36e-05/0.01882, allocations: 36.98 kB / 287.3 MB, free: 2.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.01897, allocations: 182.1 kB / 287.5 MB, free: 2.691 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.01921, allocations: 284.5 kB / 287.8 MB, free: 2.352 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.01921, allocations: 0 / 287.8 MB, free: 2.352 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002773/0.01949, allocations: 289.6 kB / 288.1 MB, free: 2.059 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.01951, allocations: 11.98 kB / 288.1 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.01951, allocations: 4 kB / 288.1 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001096/0.01962, allocations: 32.83 kB / 288.1 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.01985, allocations: 123.8 kB / 288.3 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002283/0.02008, allocations: 0.537 MB / 288.8 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.85e-05/0.02018, allocations: 20.03 kB / 288.8 MB, free: 1.305 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.02021, allocations: 16 kB / 288.8 MB, free: 1.289 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.0001118/0.02032, allocations: 140.5 kB / 289 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.743e-05/0.02036, allocations: 35.95 kB / 289 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002437/0.0206, allocations: 198.3 kB / 289.2 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.02061, allocations: 7.938 kB / 289.2 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.02061, allocations: 0 / 289.2 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.02061, allocations: 7.984 kB / 289.2 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005567/0.02117, allocations: 0.5595 MB / 289.8 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.02117, allocations: 0 / 289.8 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000218/0.02139, allocations: 94.53 kB / 289.9 MB, free: 196 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.536e-05/0.02146, allocations: 24.84 kB / 289.9 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.02147, allocations: 12 kB / 289.9 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1123/0.1337, allocations: 0.5279 MB / 290.4 MB, free: 29.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1337, allocations: 3.844 kB / 290.4 MB, free: 29.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.1341, allocations: 379.7 kB / 290.8 MB, free: 29.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.431e-05/0.1342, allocations: 38.8 kB / 290.8 MB, free: 29.72 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.1342, allocations: 12.72 kB / 290.9 MB, free: 29.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.096e-05/0.1343, allocations: 7.781 kB / 290.9 MB, free: 29.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.573e-05/0.1343, allocations: 27.5 kB / 290.9 MB, free: 29.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.1344, allocations: 9.641 kB / 290.9 MB, free: 29.72 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.289e-05/0.1345, allocations: 106 kB / 291 MB, free: 29.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1345, allocations: 1.75 kB / 291 MB, free: 29.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003651/0.1348, allocations: 119.7 kB / 291.1 MB, free: 29.7 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.0001303/0.135, allocations: 104.1 kB / 291.2 MB, free: 29.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002999/0.1353, allocations: 202.1 kB / 291.4 MB, free: 29.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/0.1353, allocations: 4.578 kB / 291.4 MB, free: 29.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.1354, allocations: 107.1 kB / 291.5 MB, free: 29.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.1357, allocations: 73.14 kB / 291.6 MB, free: 29.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.137, allocations: 1.175 MB / 292.8 MB, free: 29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001021/0.1371, allocations: 147.6 kB / 292.9 MB, free: 28.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000121/0.1372, allocations: 49.64 kB / 293 MB, free: 28.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.1374, allocations: 118.7 kB / 293.1 MB, free: 28.88 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1374, allocations: 1.125 kB / 293.1 MB, free: 28.88 MB / 266.7 MB Notification: Performance of Templates: time 0.007768/0.1451, allocations: 4.028 MB / 297.1 MB, free: 28.42 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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7060260735452175]