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.001735/0.001735, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001558/0.001558, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.376/1.376, allocations: 230.6 MB / 258.3 MB, free: 8.004 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 47.92 kB / 378.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2509, allocations: 53.37 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006973/0.2579, allocations: 5.494 MB / 437.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003755/0.2616, allocations: 2.169 MB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006192/0.2622, allocations: 47.62 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004948/0.2627, allocations: 206.2 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004386/0.2632, allocations: 182.4 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009677/0.2641, allocations: 418.8 kB / 440.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.2653, allocations: 1.009 MB / 441.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006509/0.2659, allocations: 425.4 kB / 441.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000478/0.2664, allocations: 354.8 kB / 442.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004264/0.2668, allocations: 366.3 kB / 442.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.267, allocations: 92 kB / 442.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002586/0.2672, allocations: 163.9 kB / 442.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002/0.2674, allocations: 207.4 kB / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003839/0.2678, allocations: 441.8 kB / 443.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.2691, allocations: 1.185 MB / 444.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2691, allocations: 0 / 444.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2691, allocations: 4 kB / 444.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.2691, allocations: 0 / 444.6 MB, free: 10.11 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.001492/0.2706, allocations: 0.9843 MB / 445.6 MB, free: 9.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.2706, allocations: 8.031 kB / 445.6 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.275e-05/0.2706, allocations: 22.19 kB / 445.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.2708, allocations: 139.4 kB / 445.8 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002456/0.271, allocations: 100.4 kB / 445.9 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008088/0.2718, allocations: 460.3 kB / 446.3 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.885e-05/0.2719, allocations: 58.38 kB / 446.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.272, allocations: 96.31 kB / 446.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.2733, allocations: 0.8044 MB / 447.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/0.2734, allocations: 11.89 kB / 447.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.876e-05/0.2734, allocations: 32 kB / 447.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.2735, allocations: 20 kB / 447.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009358/0.2744, allocations: 0.4957 MB / 447.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003234/0.2776, allocations: 2.765 MB / 450.6 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.2782, allocations: 207.4 kB / 450.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.2783, allocations: 96.81 kB / 450.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001101/0.2784, allocations: 23.97 kB / 450.9 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.2785, allocations: 35 kB / 450.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.783e-06/0.2785, allocations: 0 / 450.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002277/0.2807, allocations: 1.112 MB / 452.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.2808, allocations: 55.41 kB / 452.1 MB, free: 2.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.2811, allocations: 317.5 kB / 452.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.2811, allocations: 29.7 kB / 452.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002626/0.2814, allocations: 411.8 kB / 452.9 MB, free: 1.531 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.2815, allocations: 150.7 kB / 453 MB, free: 1.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.2816, allocations: 86.14 kB / 453.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.2818, allocations: 346.8 kB / 453.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.282, allocations: 109 kB / 453.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.2823, allocations: 256.6 kB / 453.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005483/0.2829, allocations: 396.7 kB / 454.2 MB, free: 80 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2829, allocations: 0 / 454.2 MB, free: 80 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007374/0.2836, allocations: 457.6 kB / 454.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2837, allocations: 8 kB / 454.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.2837, allocations: 4 kB / 454.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.2838, allocations: 44.77 kB / 454.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.2842, allocations: 107.8 kB / 454.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004066/0.2846, allocations: 0.5682 MB / 455.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.2847, allocations: 12 kB / 455.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.2848, allocations: 24 kB / 455.4 MB, free: 14.83 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.0002642/0.285, allocations: 217.7 kB / 455.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.47e-05/0.2851, allocations: 39.7 kB / 455.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000601/0.2857, allocations: 329.1 kB / 455.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2857, allocations: 4 kB / 456 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2857, allocations: 3.984 kB / 456 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.2857, allocations: 0 / 456 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.2871, allocations: 0.9878 MB / 456.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2871, allocations: 0 / 456.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003462/0.2875, allocations: 79.89 kB / 457 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001194/0.2876, allocations: 32.84 kB / 457.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.2876, allocations: 11.94 kB / 457.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003559/0.288, allocations: 0.5446 MB / 457.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.288, allocations: 4.219 kB / 457.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007652/0.2888, allocations: 0.5449 MB / 458.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.047e-05/0.2888, allocations: 31.77 kB / 458.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.2889, allocations: 15.98 kB / 458.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.289, allocations: 8 kB / 458.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.875e-05/0.2891, allocations: 27.89 kB / 458.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-05/0.2891, allocations: 12 kB / 458.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002105/0.2893, allocations: 211.2 kB / 458.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2893, allocations: 3.938 kB / 458.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004724/0.2898, allocations: 127.9 kB / 458.6 MB, free: 11.47 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.001153/0.2909, allocations: 1.114 MB / 459.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000573/0.2915, allocations: 297 kB / 460 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2915, allocations: 0 / 460 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.2917, allocations: 139.8 kB / 460.1 MB, free: 9.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000488/0.2922, allocations: 73.72 kB / 460.2 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005846/0.2981, allocations: 4.414 MB / 464.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006245/0.2987, allocations: 0.9171 MB / 465.5 MB, free: 4.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001779/0.2989, allocations: 54.44 kB / 465.6 MB, free: 4.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002989/0.2992, allocations: 243.4 kB / 465.8 MB, free: 3.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.142e-06/0.2992, allocations: 0 / 465.8 MB, free: 3.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03409/0.3333, allocations: 8.761 MB / 474.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.65, allocations: 14.91 kB / 474.6 MB, free: 11.34 MB / 382.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.041129458986688]