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.001876/0.001876, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00232/0.00232, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.409/1.409, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.001673/0.001673, allocations: 51.92 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2528, allocations: 53.35 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007205/0.26, allocations: 5.493 MB / 436.6 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004164/0.2642, allocations: 2.176 MB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005553/0.2648, allocations: 51.56 kB / 438.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005231/0.2653, allocations: 206.2 kB / 439 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000356/0.2656, allocations: 170.4 kB / 439.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009288/0.2666, allocations: 422.8 kB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001077/0.2676, allocations: 1.017 MB / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006366/0.2683, allocations: 421.5 kB / 441.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004478/0.2687, allocations: 350.9 kB / 441.4 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004526/0.2692, allocations: 370.3 kB / 441.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.2693, allocations: 92 kB / 441.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002672/0.2696, allocations: 155.9 kB / 442 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.2697, allocations: 211.4 kB / 442.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00038/0.2701, allocations: 438 kB / 442.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001236/0.2714, allocations: 1.191 MB / 443.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2714, allocations: 4 kB / 443.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2714, allocations: 0 / 443.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.2714, allocations: 4 kB / 443.8 MB, free: 10.07 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.001453/0.2728, allocations: 0.9765 MB / 444.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2729, allocations: 8.031 kB / 444.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001673/0.273, allocations: 139.4 kB / 445 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.2733, allocations: 96.38 kB / 445 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008052/0.2741, allocations: 464.3 kB / 445.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.2741, allocations: 66.38 kB / 445.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.2743, allocations: 88.33 kB / 445.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.2756, allocations: 0.7968 MB / 446.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.2756, allocations: 12 kB / 446.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.733e-05/0.2757, allocations: 32 kB / 446.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.2757, allocations: 20 kB / 446.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009433/0.2767, allocations: 0.4996 MB / 447 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003298/0.28, allocations: 2.772 MB / 449.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005305/0.2805, allocations: 206 kB / 450 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.2807, allocations: 96.81 kB / 450.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.2808, allocations: 23.97 kB / 450.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.2808, allocations: 31.06 kB / 450.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.883e-06/0.2808, allocations: 0 / 450.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002234/0.2831, allocations: 1.116 MB / 451.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.2831, allocations: 55.41 kB / 451.3 MB, free: 2.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003271/0.2834, allocations: 325.5 kB / 451.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.2835, allocations: 29.7 kB / 451.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/0.2837, allocations: 407.8 kB / 452 MB, free: 1.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.2838, allocations: 146.8 kB / 452.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.284, allocations: 82.16 kB / 452.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2841, allocations: 354.7 kB / 452.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.2843, allocations: 112.9 kB / 452.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.2846, allocations: 254 kB / 453 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000597/0.2852, allocations: 392.7 kB / 453.4 MB, free: 64 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2852, allocations: 0 / 453.4 MB, free: 64 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007294/0.286, allocations: 461.3 kB / 453.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.286, allocations: 8 kB / 453.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.286, allocations: 4 kB / 453.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.2862, allocations: 36.84 kB / 453.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.2865, allocations: 112.3 kB / 454 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004232/0.2869, allocations: 0.5601 MB / 454.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.2871, allocations: 20 kB / 454.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/0.2872, allocations: 20 kB / 454.6 MB, free: 14.82 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.0002733/0.2874, allocations: 217.7 kB / 454.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.396e-05/0.2875, allocations: 39.7 kB / 454.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005841/0.2881, allocations: 322.5 kB / 455.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.2881, allocations: 4 kB / 455.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2881, allocations: 0 / 455.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.2881, allocations: 3.984 kB / 455.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.2895, allocations: 0.9878 MB / 456.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2895, allocations: 0 / 456.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003476/0.2899, allocations: 83.89 kB / 456.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/0.29, allocations: 28.84 kB / 456.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.29, allocations: 11.94 kB / 456.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003859/0.2904, allocations: 0.5525 MB / 456.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2904, allocations: 0 / 456.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007689/0.2912, allocations: 0.5411 MB / 457.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.693e-05/0.2912, allocations: 35.77 kB / 457.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.61e-05/0.2913, allocations: 8 kB / 457.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.2914, allocations: 8 kB / 457.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.2915, allocations: 28.08 kB / 457.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.2915, allocations: 23.91 kB / 457.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002346/0.2918, allocations: 211.2 kB / 457.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2918, allocations: 0 / 457.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005059/0.2923, allocations: 131.9 kB / 457.8 MB, free: 11.45 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.001173/0.2934, allocations: 1.116 MB / 458.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005959/0.294, allocations: 292.4 kB / 459.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.294, allocations: 0 / 459.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002639/0.2943, allocations: 139.8 kB / 459.3 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.2948, allocations: 69.2 kB / 459.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006063/0.3008, allocations: 4.416 MB / 463.8 MB, free: 5.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000629/0.3015, allocations: 0.921 MB / 464.7 MB, free: 4.211 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001641/0.3016, allocations: 43.34 kB / 464.8 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002903/0.3019, allocations: 243.3 kB / 465 MB, free: 3.926 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3019, allocations: 0 / 465 MB, free: 3.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05626/0.3582, allocations: 8.742 MB / 473.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.16, allocations: 18.78 kB / 473.8 MB, free: 11.35 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.555770562030375]