Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001706/0.001706, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001939/0.001939, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.477/1.477, allocations: 227.7 MB / 247.2 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 71.88 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.269, allocations: 50.54 MB / 409.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00706/0.2761, allocations: 5.454 MB / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003958/0.2801, allocations: 2.134 MB / 416.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007565/0.2809, allocations: 39.75 kB / 416.7 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005986/0.2816, allocations: 210.2 kB / 416.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005693/0.2821, allocations: 170.4 kB / 417.1 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.2833, allocations: 403 kB / 417.5 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001439/0.2848, allocations: 1.013 MB / 418.5 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009552/0.2857, allocations: 0.6104 MB / 419.1 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005802/0.2863, allocations: 338.9 kB / 419.4 MB, free: 7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000444/0.2868, allocations: 366.3 kB / 419.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.2869, allocations: 95.94 kB / 419.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002896/0.2872, allocations: 156 kB / 420 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.2874, allocations: 203.4 kB / 420.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003992/0.2878, allocations: 433.9 kB / 420.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.2891, allocations: 1.186 MB / 421.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2892, allocations: 4 kB / 421.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2892, allocations: 0 / 421.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.2892, allocations: 0 / 421.8 MB, free: 4.578 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.001678/0.2909, allocations: 1.06 MB / 422.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.2909, allocations: 12.03 kB / 422.9 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001894/0.2911, allocations: 135.5 kB / 423 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002486/0.2914, allocations: 108.3 kB / 423.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008496/0.2923, allocations: 0.5223 MB / 423.7 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.38e-05/0.2923, allocations: 66.31 kB / 423.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.2924, allocations: 88.33 kB / 423.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.2939, allocations: 0.8085 MB / 424.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.93e-05/0.294, allocations: 3.938 kB / 424.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.694e-05/0.294, allocations: 32 kB / 424.6 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.2941, allocations: 20 kB / 424.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009961/0.2951, allocations: 0.4996 MB / 425.2 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/0.2986, allocations: 2.861 MB / 428 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005802/0.2992, allocations: 228.1 kB / 428.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001951/0.2995, allocations: 104.8 kB / 428.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002934/0.2998, allocations: 251.3 kB / 428.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.2998, allocations: 43 kB / 428.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.545e-06/0.2998, allocations: 0 / 428.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002722/0.3025, allocations: 1.265 MB / 429.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.3026, allocations: 59.41 kB / 430 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003793/0.303, allocations: 309.7 kB / 430.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.303, allocations: 29.7 kB / 430.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/0.3034, allocations: 411.7 kB / 430.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.3035, allocations: 134.8 kB / 430.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.3036, allocations: 90.2 kB / 430.9 MB, free: 11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.3038, allocations: 354.7 kB / 431.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.304, allocations: 113.1 kB / 431.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003284/0.3044, allocations: 246.7 kB / 431.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005751/0.3049, allocations: 396.7 kB / 432 MB, free: 9.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.305, allocations: 0 / 432 MB, free: 9.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008086/0.3058, allocations: 465.3 kB / 432.5 MB, free: 9.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3058, allocations: 8 kB / 432.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3058, allocations: 4.594 kB / 432.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002101/0.306, allocations: 36.84 kB / 432.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000368/0.3064, allocations: 115.8 kB / 432.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004589/0.3069, allocations: 0.5601 MB / 433.2 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.3071, allocations: 16 kB / 433.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.913e-05/0.3071, allocations: 20 kB / 433.2 MB, free: 8.531 MB / 350.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.0003197/0.3074, allocations: 225.7 kB / 433.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.742e-05/0.3075, allocations: 43.7 kB / 433.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006361/0.3082, allocations: 316.9 kB / 433.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3082, allocations: 7.938 kB / 433.8 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.3082, allocations: 4 kB / 433.8 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3082, allocations: 0 / 433.8 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.3098, allocations: 1.024 MB / 434.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3098, allocations: 0 / 434.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003513/0.3101, allocations: 79.89 kB / 434.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001428/0.3103, allocations: 33 kB / 434.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.625e-05/0.3103, allocations: 15.98 kB / 434.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003805/0.3107, allocations: 0.5406 MB / 435.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.3107, allocations: 8.016 kB / 435.5 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007962/0.3115, allocations: 0.5418 MB / 436 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.783e-05/0.3116, allocations: 108.9 kB / 436.1 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.794e-05/0.3117, allocations: 15.98 kB / 436.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.3118, allocations: 8 kB / 436.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.3119, allocations: 27.97 kB / 436.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/0.3119, allocations: 11.94 kB / 436.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.3122, allocations: 215.2 kB / 436.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3122, allocations: 0 / 436.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000512/0.3127, allocations: 116 kB / 436.5 MB, free: 5.043 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.001255/0.314, allocations: 1.116 MB / 437.6 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006893/0.3147, allocations: 299.9 kB / 437.9 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3147, allocations: 0 / 437.9 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.315, allocations: 144.9 kB / 438.1 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005232/0.3155, allocations: 74.05 kB / 438.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006113/0.3216, allocations: 4.417 MB / 442.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006425/0.3223, allocations: 0.921 MB / 443.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.3225, allocations: 50.2 kB / 443.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/0.3228, allocations: 243.4 kB / 443.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3228, allocations: 0 / 443.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03596/0.3588, allocations: 8.327 MB / 452.1 MB, free: 5.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.36, allocations: 6.859 kB / 452.1 MB, free: 5.352 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)