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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 109.7 kB / 16.62 MB, free: 6.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 189.8 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009614/0.0009613, allocations: 46.69 kB / 300.2 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.08651, allocations: 49.44 MB / 349.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007011/0.09356, allocations: 5.413 MB / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004241/0.09786, allocations: 2.017 MB / 357.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009906/0.09888, allocations: 35.81 kB / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006061/0.0995, allocations: 170.8 kB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008233/0.1004, allocations: 138.8 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.1018, allocations: 335.4 kB / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.1033, allocations: 1.029 MB / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.1043, allocations: 0.6026 MB / 359.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005604/0.1049, allocations: 338.8 kB / 359.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003789/0.1053, allocations: 366.3 kB / 360.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001395/0.1054, allocations: 92 kB / 360.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002374/0.1057, allocations: 147.9 kB / 360.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001774/0.1059, allocations: 199.5 kB / 360.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003504/0.1062, allocations: 437.9 kB / 361 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009966/0.1072, allocations: 1.149 MB / 362.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1072, allocations: 0 / 362.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1072, allocations: 0 / 362.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.668e-05/0.1073, allocations: 0 / 362.1 MB, free: 7.918 MB / 302.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.001335/0.1086, allocations: 1.03 MB / 363.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1087, allocations: 16.03 kB / 363.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001248/0.1088, allocations: 131.5 kB / 363.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.1089, allocations: 87.91 kB / 363.4 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005771/0.1095, allocations: 0.4909 MB / 363.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/0.1095, allocations: 66.38 kB / 363.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.1097, allocations: 92.22 kB / 364 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.111, allocations: 0.8046 MB / 364.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.111, allocations: 7.906 kB / 364.8 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.866e-05/0.1111, allocations: 36 kB / 364.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.1111, allocations: 23.94 kB / 364.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000896/0.112, allocations: 499.6 kB / 365.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002883/0.1149, allocations: 2.899 MB / 368.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004912/0.1154, allocations: 226.6 kB / 368.5 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.1156, allocations: 100.8 kB / 368.6 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002426/0.1158, allocations: 255.2 kB / 368.8 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.1159, allocations: 34.56 kB / 368.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.1159, allocations: 0 / 368.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.1419/0.2578, allocations: 1.25 MB / 370.1 MB, free: 25.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.226e-05/0.2579, allocations: 55.12 kB / 370.2 MB, free: 25.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.2582, allocations: 309.1 kB / 370.5 MB, free: 25.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.2582, allocations: 33.83 kB / 370.5 MB, free: 25.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.2584, allocations: 391.2 kB / 370.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.996e-05/0.2585, allocations: 140.5 kB / 371 MB, free: 24.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.2586, allocations: 87.89 kB / 371.1 MB, free: 24.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.462e-05/0.2586, allocations: 351.1 kB / 371.5 MB, free: 24.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.2588, allocations: 109.6 kB / 371.6 MB, free: 24.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.2591, allocations: 249.7 kB / 371.8 MB, free: 24.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/0.2595, allocations: 385.7 kB / 372.2 MB, free: 24.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.2595, allocations: 1.438 kB / 372.2 MB, free: 24.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006487/0.2602, allocations: 463.7 kB / 372.6 MB, free: 23.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.2602, allocations: 10.42 kB / 372.6 MB, free: 23.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.2602, allocations: 5.062 kB / 372.7 MB, free: 23.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001813/0.2604, allocations: 38.44 kB / 372.7 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003467/0.2608, allocations: 115.5 kB / 372.8 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002457/0.261, allocations: 0.5502 MB / 373.4 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.2612, allocations: 17.34 kB / 373.4 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.2613, allocations: 21.28 kB / 373.4 MB, free: 23.32 MB / 302.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.0002224/0.2615, allocations: 218.2 kB / 373.6 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.73e-05/0.2615, allocations: 39.56 kB / 373.6 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005398/0.2621, allocations: 322.2 kB / 374 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.2621, allocations: 3.656 kB / 374 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2621, allocations: 1.266 kB / 374 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.2621, allocations: 6.297 kB / 374 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.2634, allocations: 1.019 MB / 375 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2634, allocations: 1.375 kB / 375 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000345/0.2638, allocations: 84.91 kB / 375.1 MB, free: 22.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.2639, allocations: 34.64 kB / 375.1 MB, free: 22.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.2639, allocations: 9.641 kB / 375.1 MB, free: 22.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001973/0.2641, allocations: 0.5488 MB / 375.7 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2641, allocations: 5.656 kB / 375.7 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006375/0.2648, allocations: 0.5473 MB / 376.2 MB, free: 21.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/0.2648, allocations: 108.3 kB / 376.3 MB, free: 21.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.528e-05/0.2649, allocations: 15.91 kB / 376.3 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.2651, allocations: 8.812 kB / 376.3 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/0.2651, allocations: 28.38 kB / 376.4 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.2652, allocations: 10.88 kB / 376.4 MB, free: 21.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001773/0.2653, allocations: 210.5 kB / 376.6 MB, free: 21.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2653, allocations: 1.344 kB / 376.6 MB, free: 21.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005357/0.2659, allocations: 118.8 kB / 376.7 MB, free: 21.17 MB / 302.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.0008216/0.2667, allocations: 1.112 MB / 377.8 MB, free: 20.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005861/0.2673, allocations: 318.2 kB / 378.1 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2673, allocations: 0 / 378.1 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.2676, allocations: 150.6 kB / 378.3 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.2681, allocations: 63.61 kB / 378.3 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005104/0.2732, allocations: 4.749 MB / 383.1 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.2736, allocations: 0.9237 MB / 384 MB, free: 16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002103/0.2739, allocations: 42.62 kB / 384.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002265/0.2741, allocations: 245.1 kB / 384.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2741, allocations: 0 / 384.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2697/0.5438, allocations: 7.97 MB / 392.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/0.544, allocations: 248.9 kB / 392.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.094/2.638, allocations: 0 / 392.5 MB, free: 13.2 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches