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.001531/0.001531, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001695/0.001695, allocations: 192 kB / 18 MB, free: 5.102 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 55.91 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2885, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007677/0.2962, allocations: 5.431 MB / 405.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003981/0.3002, allocations: 2.071 MB / 407.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009155/0.3011, allocations: 39.75 kB / 407.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007397/0.302, allocations: 206.2 kB / 408 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008583/0.3028, allocations: 174.3 kB / 408.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.3041, allocations: 395.1 kB / 408.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001617/0.3057, allocations: 1.025 MB / 409.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.3067, allocations: 0.5987 MB / 410.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006078/0.3074, allocations: 338.9 kB / 410.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005954/0.308, allocations: 362.3 kB / 410.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.3082, allocations: 96 kB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.3086, allocations: 155.9 kB / 411.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002794/0.3088, allocations: 203.4 kB / 411.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007066/0.3096, allocations: 430 kB / 411.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001852/0.3114, allocations: 1.186 MB / 412.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3114, allocations: 0 / 412.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3115, allocations: 0 / 412.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.438e-05/0.3115, allocations: 0 / 412.9 MB, free: 12.11 MB / 334.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.0022/0.3137, allocations: 1.048 MB / 413.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.3138, allocations: 12.02 kB / 413.9 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001572/0.3139, allocations: 131.5 kB / 414.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.3141, allocations: 92.38 kB / 414.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000906/0.315, allocations: 0.53 MB / 414.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.013e-05/0.3151, allocations: 66.36 kB / 414.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/0.3152, allocations: 88.33 kB / 414.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.3167, allocations: 0.8085 MB / 415.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.736e-05/0.3168, allocations: 7.953 kB / 415.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.81e-05/0.3169, allocations: 36 kB / 415.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.3169, allocations: 20 kB / 415.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.3179, allocations: 0.4957 MB / 416.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003391/0.3213, allocations: 2.857 MB / 419.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005645/0.3219, allocations: 232.6 kB / 419.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.3221, allocations: 105.3 kB / 419.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002545/0.3224, allocations: 247.3 kB / 419.6 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.3224, allocations: 38.56 kB / 419.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.674e-06/0.3224, allocations: 0 / 419.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002718/0.3251, allocations: 1.266 MB / 420.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.3252, allocations: 55.34 kB / 421 MB, free: 3.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.3256, allocations: 308.5 kB / 421.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.3256, allocations: 29.7 kB / 421.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/0.3259, allocations: 419.7 kB / 421.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.326, allocations: 130.9 kB / 421.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.3262, allocations: 94.2 kB / 422 MB, free: 2.562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.3264, allocations: 350.7 kB / 422.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.3266, allocations: 105.1 kB / 422.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003704/0.327, allocations: 250.7 kB / 422.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005808/0.3276, allocations: 396.8 kB / 423 MB, free: 1.352 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3276, allocations: 4 kB / 423 MB, free: 1.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007527/0.3283, allocations: 461.6 kB / 423.5 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3284, allocations: 8 kB / 423.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3284, allocations: 4 kB / 423.5 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002152/0.3286, allocations: 40.78 kB / 423.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/0.329, allocations: 107.8 kB / 423.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004375/0.3294, allocations: 0.5485 MB / 424.2 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.3296, allocations: 20.16 kB / 424.2 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.3297, allocations: 27.98 kB / 424.2 MB, free: 108 kB / 334.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.000332/0.33, allocations: 221.7 kB / 424.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.885e-05/0.3301, allocations: 43.64 kB / 424.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006332/0.3307, allocations: 320.5 kB / 424.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3307, allocations: 8 kB / 424.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3307, allocations: 0 / 424.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3308, allocations: 0 / 424.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.3323, allocations: 1.019 MB / 425.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3323, allocations: 8.156 kB / 425.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003462/0.3327, allocations: 75.89 kB / 425.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001391/0.3328, allocations: 40.88 kB / 426 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.3328, allocations: 8 kB / 426 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003906/0.3332, allocations: 0.5484 MB / 426.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3332, allocations: 0 / 426.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007836/0.334, allocations: 0.5492 MB / 427.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.556e-05/0.3341, allocations: 104.9 kB / 427.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.57e-05/0.3342, allocations: 16 kB / 427.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.3343, allocations: 8 kB / 427.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.3344, allocations: 23.95 kB / 427.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.3344, allocations: 15.94 kB / 427.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.3346, allocations: 215.3 kB / 427.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3347, allocations: 0 / 427.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004927/0.3352, allocations: 123.9 kB / 427.6 MB, free: 12.6 MB / 350.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.00113/0.3363, allocations: 1.116 MB / 428.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.3369, allocations: 300.8 kB / 429 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3369, allocations: 0 / 429 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002712/0.3372, allocations: 140 kB / 429.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004831/0.3377, allocations: 67.83 kB / 429.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005821/0.3435, allocations: 4.394 MB / 433.6 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006289/0.3442, allocations: 0.9288 MB / 434.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001594/0.3443, allocations: 51.2 kB / 434.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.3446, allocations: 235.4 kB / 434.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3447, allocations: 0 / 434.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.3788, allocations: 8.307 MB / 443.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12, allocations: 6.609 kB / 443.1 MB, free: 12.95 MB / 366.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