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.0017/0.0017, allocations: 124.3 kB / 17.79 MB, free: 5.227 MB / 14.72 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.00209/0.00209, allocations: 199.3 kB / 20.74 MB, free: 2.281 MB / 14.72 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.442/1.442, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 47.94 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09154/0.09309, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.2033/0.2964, allocations: 5.458 MB / 431.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003125/0.2995, allocations: 2.154 MB / 433.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005057/0.3, allocations: 51.72 kB / 434 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003707/0.3004, allocations: 202.1 kB / 434.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000301/0.3007, allocations: 178.4 kB / 434.3 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007139/0.3014, allocations: 405.7 kB / 434.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007418/0.3021, allocations: 1.008 MB / 435.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005144/0.3027, allocations: 422.7 kB / 436.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003673/0.303, allocations: 359.4 kB / 436.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003358/0.3034, allocations: 367.9 kB / 436.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.3035, allocations: 96.12 kB / 437 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002566/0.3037, allocations: 156.1 kB / 437.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.3039, allocations: 208.6 kB / 437.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000292/0.3042, allocations: 435.5 kB / 437.7 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.3053, allocations: 1.186 MB / 438.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3053, allocations: 4 kB / 438.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3053, allocations: 0 / 438.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.3053, allocations: 0 / 438.9 MB, free: 5.398 MB / 350.1 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.001284/0.3066, allocations: 1.061 MB / 440 MB, free: 4.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.3067, allocations: 10.41 kB / 440 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001312/0.3068, allocations: 132.1 kB / 440.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.307, allocations: 101.1 kB / 440.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006709/0.3077, allocations: 0.5202 MB / 440.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.3077, allocations: 63.88 kB / 440.8 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.3078, allocations: 89.09 kB / 440.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.309, allocations: 0.8096 MB / 441.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.171e-05/0.3091, allocations: 3.703 kB / 441.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.395e-05/0.3091, allocations: 36.5 kB / 441.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.3091, allocations: 20.16 kB / 441.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008922/0.31, allocations: 0.4982 MB / 442.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.3128, allocations: 2.864 MB / 445.1 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.3133, allocations: 206.6 kB / 445.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.3134, allocations: 96.89 kB / 445.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001443/0.3136, allocations: 254.6 kB / 445.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.3136, allocations: 43.64 kB / 445.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.3136, allocations: 0 / 445.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.00207/0.3157, allocations: 1.265 MB / 447 MB, free: 128 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.04e-05/0.3157, allocations: 55.25 kB / 447 MB, free: 64 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/0.316, allocations: 313.7 kB / 447.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.3161, allocations: 30.86 kB / 447.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002773/0.3163, allocations: 412.8 kB / 447.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.3165, allocations: 142.3 kB / 447.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.3166, allocations: 86.53 kB / 448 MB, free: 15.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3168, allocations: 353.6 kB / 448.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.3169, allocations: 104.9 kB / 448.5 MB, free: 15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003149/0.3173, allocations: 252.6 kB / 448.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005642/0.3178, allocations: 396.1 kB / 449.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3178, allocations: 1.219 kB / 449.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007349/0.3186, allocations: 459.5 kB / 449.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3186, allocations: 7.188 kB / 449.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.3186, allocations: 6.406 kB / 449.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001777/0.3188, allocations: 33.67 kB / 449.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.3191, allocations: 111 kB / 449.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004447/0.3196, allocations: 0.5544 MB / 450.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.3197, allocations: 20.03 kB / 450.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.3198, allocations: 21.73 kB / 450.3 MB, free: 13.7 MB / 366.1 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.000299/0.3201, allocations: 222.4 kB / 450.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.745e-05/0.3202, allocations: 41.73 kB / 450.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006239/0.3208, allocations: 317.6 kB / 450.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.3208, allocations: 5.141 kB / 450.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.3208, allocations: 2.219 kB / 450.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.3208, allocations: 1.453 kB / 450.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.3224, allocations: 1.02 MB / 451.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3224, allocations: 2.5 kB / 451.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/0.3227, allocations: 76.61 kB / 452 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001318/0.3229, allocations: 37.81 kB / 452 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.3229, allocations: 10 kB / 452 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003808/0.3233, allocations: 0.5491 MB / 452.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.3233, allocations: 5.156 kB / 452.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000798/0.3241, allocations: 0.5527 MB / 453.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.532e-05/0.3242, allocations: 108.5 kB / 453.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/0.3242, allocations: 12.97 kB / 453.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.3244, allocations: 9.359 kB / 453.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.598e-05/0.3244, allocations: 23.09 kB / 453.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.3244, allocations: 17.94 kB / 453.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000245/0.3247, allocations: 214.1 kB / 453.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3247, allocations: 0 / 453.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005795/0.3253, allocations: 118.7 kB / 453.6 MB, free: 11.53 MB / 366.1 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.001214/0.3265, allocations: 1.124 MB / 454.7 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006205/0.3271, allocations: 288.1 kB / 455 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3271, allocations: 5.5 kB / 455 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.3273, allocations: 131.6 kB / 455.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/0.3278, allocations: 65.61 kB / 455.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006186/0.334, allocations: 4.406 MB / 459.6 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006611/0.3347, allocations: 0.9238 MB / 460.5 MB, free: 6.742 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.3349, allocations: 52.45 kB / 460.6 MB, free: 6.734 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003093/0.3352, allocations: 244.8 kB / 460.8 MB, free: 6.531 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3352, allocations: 384 / 460.8 MB, free: 6.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04427/0.3795, allocations: 8.416 MB / 469.2 MB, free: 2.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.9, allocations: 9.016 kB / 469.3 MB, free: 2.836 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 15.279451380949467]