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.000825/0.000825, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0007676/0.0007676, allocations: 157 kB / 23.93 MB, free: 0.6289 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 0.8803/0.8803, allocations: 173.4 MB / 200.4 MB, free: 9.457 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.625e-05/1.811e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.0046/0.004618, allocations: 4.811 MB / 323.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002376/0.006993, allocations: 2.001 MB / 325.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003361/0.007329, allocations: 51.56 kB / 325.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004418/0.007771, allocations: 214.1 kB / 325.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.008025, allocations: 182.3 kB / 325.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000725/0.00875, allocations: 391 kB / 326.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006727/0.009423, allocations: 1.04 MB / 327.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004602/0.009883, allocations: 397.5 kB / 327.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004468/0.01033, allocations: 0.5185 MB / 328 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002953/0.01063, allocations: 263.2 kB / 328.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.551e-05/0.01072, allocations: 92 kB / 328.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002093/0.01093, allocations: 147.8 kB / 328.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.01109, allocations: 211.3 kB / 328.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002054/0.0113, allocations: 295.3 kB / 329 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008348/0.01213, allocations: 1.191 MB / 330.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.01214, allocations: 3.984 kB / 330.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.01214, allocations: 0 / 330.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.01214, allocations: 0 / 330.2 MB, free: 10.54 MB / 298.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.0009327/0.01308, allocations: 0.9687 MB / 331.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.01313, allocations: 8.922 kB / 331.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.01323, allocations: 143.4 kB / 331.3 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.018e-05/0.01332, allocations: 96.38 kB / 331.4 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005338/0.01386, allocations: 451.6 kB / 331.8 MB, free: 8.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/0.0139, allocations: 62.38 kB / 331.9 MB, free: 8.762 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.881e-05/0.01398, allocations: 88.33 kB / 332 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008628/0.01484, allocations: 0.8011 MB / 332.8 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.01487, allocations: 8.078 kB / 332.8 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.383e-05/0.01491, allocations: 40.12 kB / 332.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.01492, allocations: 20 kB / 332.9 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006145/0.01554, allocations: 0.4918 MB / 333.3 MB, free: 7.281 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.01747, allocations: 2.579 MB / 335.9 MB, free: 4.586 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003807/0.01785, allocations: 211.2 kB / 336.1 MB, free: 4.367 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.01796, allocations: 96.81 kB / 336.2 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.669e-05/0.01806, allocations: 19.98 kB / 336.2 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.01808, allocations: 42.44 kB / 336.3 MB, free: 4.199 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.553e-06/0.01808, allocations: 0 / 336.3 MB, free: 4.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001535/0.01961, allocations: 1.111 MB / 337.4 MB, free: 3.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.01965, allocations: 55.41 kB / 337.5 MB, free: 2.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.01985, allocations: 308.4 kB / 337.8 MB, free: 2.652 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.01987, allocations: 33.7 kB / 337.8 MB, free: 2.613 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.02003, allocations: 407.7 kB / 338.2 MB, free: 2.211 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.068e-05/0.0201, allocations: 138.8 kB / 338.3 MB, free: 2.074 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.857e-05/0.02018, allocations: 94.16 kB / 338.4 MB, free: 1.977 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.02029, allocations: 354.7 kB / 338.8 MB, free: 1.621 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.02042, allocations: 105 kB / 338.9 MB, free: 1.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.0206, allocations: 254 kB / 339.1 MB, free: 1.207 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.02093, allocations: 388.7 kB / 339.5 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.02093, allocations: 0 / 339.5 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004402/0.02137, allocations: 465.8 kB / 339.9 MB, free: 304 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.02138, allocations: 11.94 kB / 340 MB, free: 292 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.02139, allocations: 4 kB / 340 MB, free: 288 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001526/0.02154, allocations: 32.84 kB / 340 MB, free: 252 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.02174, allocations: 115.8 kB / 340.1 MB, free: 136 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003333/0.02208, allocations: 0.5523 MB / 340.7 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.162e-05/0.02217, allocations: 16 kB / 340.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.02219, allocations: 20 kB / 340.7 MB, free: 15.52 MB / 314.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.0001919/0.02238, allocations: 225.8 kB / 340.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.904e-05/0.02242, allocations: 39.77 kB / 340.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003918/0.02281, allocations: 321.4 kB / 341.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.02282, allocations: 4 kB / 341.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.02282, allocations: 0 / 341.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.02283, allocations: 3.984 kB / 341.3 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008955/0.02372, allocations: 0.9645 MB / 342.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.02373, allocations: 7.938 kB / 342.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.02392, allocations: 71.95 kB / 342.3 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.74e-05/0.02401, allocations: 44.81 kB / 342.4 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.02403, allocations: 8 kB / 342.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002349/0.02426, allocations: 0.5445 MB / 342.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.02426, allocations: 8.016 kB / 342.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004747/0.02474, allocations: 0.549 MB / 343.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.13e-05/0.02477, allocations: 43.7 kB / 343.5 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.0248, allocations: 8 kB / 343.5 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.297e-05/0.02487, allocations: 7.984 kB / 343.5 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.02491, allocations: 28 kB / 343.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.02492, allocations: 12.17 kB / 343.6 MB, free: 12.49 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001331/0.02506, allocations: 211.1 kB / 343.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02506, allocations: 3.938 kB / 343.8 MB, free: 12.28 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002897/0.02535, allocations: 116 kB / 343.9 MB, free: 12.17 MB / 314.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.0007481/0.0261, allocations: 1.111 MB / 345 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000393/0.02649, allocations: 288.7 kB / 345.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.02649, allocations: 4.125 kB / 345.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.02663, allocations: 135.8 kB / 345.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.02696, allocations: 65.41 kB / 345.5 MB, free: 10.53 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.03047, allocations: 4.183 MB / 349.7 MB, free: 6.113 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.0307, allocations: 325.6 kB / 350 MB, free: 5.766 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.03081, allocations: 46.09 kB / 350 MB, free: 5.723 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.03101, allocations: 244.4 kB / 350.3 MB, free: 5.484 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.03101, allocations: 0 / 350.3 MB, free: 5.484 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.05284, allocations: 9.043 MB / 359.3 MB, free: 12.62 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.414/7.467, allocations: 3.75 kB / 359.3 MB, free: 12.62 MB / 330.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 9.13162259105593]