Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001743/0.001743, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002075/0.002075, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2243/0.2243, allocations: 46.12 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Warning: Requested package Modelica 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.002264/0.002264, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3132, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004116/0.3174, allocations: 2.865 MB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.3189, allocations: 0.7994 MB / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.3191, allocations: 11.06 kB / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.3194, allocations: 66.06 kB / 0.5342 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002561/0.3197, allocations: 120.9 kB / 0.5344 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003619/0.32, allocations: 122.7 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004685/0.3205, allocations: 445.5 kB / 0.5349 GB, free: 9.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003043/0.3208, allocations: 193.9 kB / 0.5351 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002784/0.3211, allocations: 172.2 kB / 0.5352 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002561/0.3214, allocations: 192.9 kB / 0.5354 GB, free: 9.598 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.287e-05/0.3214, allocations: 34.09 kB / 0.5355 GB, free: 9.598 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.3215, allocations: 43 kB / 0.5355 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.343e-05/0.3216, allocations: 81.39 kB / 0.5356 GB, free: 9.523 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002325/0.3219, allocations: 209.8 kB / 0.5358 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005309/0.3224, allocations: 462.1 kB / 0.5362 GB, free: 9.051 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3224, allocations: 0 / 0.5362 GB, free: 9.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3224, allocations: 0 / 0.5362 GB, free: 9.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.3224, allocations: 1.188 kB / 0.5362 GB, free: 9.051 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001048/0.3235, allocations: 0.6869 MB / 0.5369 GB, free: 8.449 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.3235, allocations: 9.031 kB / 0.5369 GB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.447e-05/0.3236, allocations: 79.38 kB / 0.537 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003354/0.324, allocations: 70.72 kB / 0.537 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.3244, allocations: 307.7 kB / 0.5373 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.3245, allocations: 28.88 kB / 0.5374 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-05/0.3245, allocations: 42.16 kB / 0.5374 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006566/0.3252, allocations: 384.8 kB / 0.5378 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.3252, allocations: 9.078 kB / 0.5378 GB, free: 7.766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.3253, allocations: 15.66 kB / 0.5378 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.3253, allocations: 9.406 kB / 0.5378 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005199/0.3258, allocations: 249.1 kB / 0.538 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.3274, allocations: 1.099 MB / 0.5391 GB, free: 6.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.328, allocations: 363.5 kB / 0.5395 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.3283, allocations: 169.5 kB / 0.5396 GB, free: 6.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.3284, allocations: 8.5 kB / 0.5396 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.3284, allocations: 45.39 kB / 0.5397 GB, free: 6.375 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 1.944e-06/0.3284, allocations: 0 / 0.5397 GB, free: 6.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.00407/0.3325, allocations: 2.458 MB / 0.5421 GB, free: 4.367 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.3326, allocations: 110 kB / 0.5422 GB, free: 4.242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.3329, allocations: 244.8 kB / 0.5424 GB, free: 4.074 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.3329, allocations: 40.61 kB / 0.5425 GB, free: 4.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.333, allocations: 180.8 kB / 0.5426 GB, free: 3.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.3332, allocations: 204.6 kB / 0.5428 GB, free: 3.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.3333, allocations: 87.09 kB / 0.5429 GB, free: 3.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3335, allocations: 351 kB / 0.5432 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002948/0.3338, allocations: 135.7 kB / 0.5434 GB, free: 3.219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003454/0.3342, allocations: 234.6 kB / 0.5436 GB, free: 3.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000653/0.3348, allocations: 396 kB / 0.544 GB, free: 2.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3348, allocations: 8.938 kB / 0.544 GB, free: 2.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001102/0.3359, allocations: 0.5579 MB / 0.5445 GB, free: 2.465 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.336, allocations: 5.656 kB / 0.5445 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.336, allocations: 3.406 kB / 0.5445 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003828/0.3364, allocations: 125.1 kB / 0.5446 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000382/0.3368, allocations: 101.4 kB / 0.5447 GB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004678/0.3415, allocations: 5.213 MB / 0.5498 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.3418, allocations: 19.98 kB / 0.5499 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.395e-05/0.3419, allocations: 16 kB / 0.5499 GB, free: 12.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002343/0.3421, allocations: 177.1 kB / 0.55 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3422, allocations: 39.77 kB / 0.5501 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.3423, allocations: 50.17 kB / 0.5501 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3424, allocations: 4 kB / 0.5501 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.942e-05/0.3424, allocations: 7.938 kB / 0.5501 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.3424, allocations: 4.172 kB / 0.5501 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.3445, allocations: 1.333 MB / 0.5514 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3446, allocations: 0 / 0.5514 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.345, allocations: 99.88 kB / 0.5515 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002901/0.3453, allocations: 98.39 kB / 0.5516 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.3453, allocations: 12 kB / 0.5516 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00367/0.349, allocations: 4.431 MB / 0.556 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3491, allocations: 0 / 0.556 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.3505, allocations: 0.9389 MB / 0.5569 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.3507, allocations: 104.9 kB / 0.557 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.904e-05/0.3507, allocations: 16.05 kB / 0.557 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.351, allocations: 16 kB / 0.557 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.3511, allocations: 47.81 kB / 0.5571 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.3511, allocations: 20 kB / 0.5571 GB, free: 4.984 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001858/0.3513, allocations: 182 kB / 0.5573 GB, free: 4.805 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3513, allocations: 0 / 0.5573 GB, free: 4.805 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007546/0.3521, allocations: 120 kB / 0.5574 GB, free: 4.688 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001768/0.3539, allocations: 1.476 MB / 0.5588 GB, free: 3.168 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.3553, allocations: 0.78 MB / 0.5596 GB, free: 2.348 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3553, allocations: 0 / 0.5596 GB, free: 2.348 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008093/0.3561, allocations: 0.57 MB / 0.5601 GB, free: 1.738 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007087/0.3568, allocations: 69.08 kB / 0.5602 GB, free: 1.672 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005976/0.3628, allocations: 4.167 MB / 0.5643 GB, free: 13.31 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004704/0.3633, allocations: 0.8241 MB / 0.5651 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001715/0.3635, allocations: 43.19 kB / 0.5651 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.3637, allocations: 135.4 kB / 0.5652 GB, free: 12.29 MB / 430.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3637, allocations: 0 / 0.5652 GB, free: 12.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04199/0.4057, allocations: 8.366 MB / 0.5734 GB, free: 4.074 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.64, allocations: 7.875 kB / 0.5734 GB, free: 4.066 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1)