Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.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 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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_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.001558/0.001558, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001827/0.001827, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.235/0.235, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002339/0.002339, allocations: 83.52 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1247, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007535/0.1323, allocations: 5.785 MB / 486 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004334/0.1367, allocations: 2.352 MB / 488.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006798/0.1374, allocations: 43.75 kB / 488.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005034/0.1379, allocations: 230 kB / 488.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004032/0.1384, allocations: 178.3 kB / 488.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.1394, allocations: 474.9 kB / 489.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.1405, allocations: 1.103 MB / 490.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009026/0.1415, allocations: 0.6185 MB / 491 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004937/0.142, allocations: 374.6 kB / 491.3 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000447/0.1424, allocations: 382.1 kB / 491.7 MB, free: 9.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.1426, allocations: 96 kB / 491.8 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003303/0.1429, allocations: 163.8 kB / 492 MB, free: 9.309 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002275/0.1431, allocations: 215.3 kB / 492.2 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004441/0.1436, allocations: 473.6 kB / 492.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.1449, allocations: 1.238 MB / 493.9 MB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1449, allocations: 0 / 493.9 MB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1449, allocations: 0 / 493.9 MB, free: 7.391 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.1449, allocations: 0 / 493.9 MB, free: 7.391 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001721/0.1467, allocations: 1.134 MB / 495 MB, free: 6.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1467, allocations: 8.031 kB / 495 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.1469, allocations: 139.9 kB / 495.1 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002551/0.1471, allocations: 115.7 kB / 495.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007467/0.1479, allocations: 0.5706 MB / 495.8 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.309e-05/0.148, allocations: 66 kB / 495.9 MB, free: 5.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.1481, allocations: 92 kB / 496 MB, free: 5.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.1496, allocations: 0.8853 MB / 496.9 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.173e-05/0.1497, allocations: 7.906 kB / 496.9 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.746e-05/0.1497, allocations: 40 kB / 496.9 MB, free: 4.176 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.1498, allocations: 24 kB / 496.9 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009911/0.1508, allocations: 0.5268 MB / 497.5 MB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003918/0.1547, allocations: 3.65 MB / 0.4894 GB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000579/0.1553, allocations: 219.9 kB / 0.4896 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.1555, allocations: 101.3 kB / 0.4897 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000348/0.1559, allocations: 251.3 kB / 0.4899 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.1559, allocations: 34.56 kB / 0.4899 GB, free: 15.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.625e-06/0.1559, allocations: 0 / 0.4899 GB, free: 15.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002565/0.1585, allocations: 1.291 MB / 0.4912 GB, free: 13.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.1585, allocations: 59.34 kB / 0.4913 GB, free: 13.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005613/0.1591, allocations: 405.8 kB / 0.4917 GB, free: 13.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.1592, allocations: 33.7 kB / 0.4917 GB, free: 13.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003495/0.1595, allocations: 478 kB / 0.4921 GB, free: 12.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.1596, allocations: 138 kB / 0.4923 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.1598, allocations: 102.2 kB / 0.4924 GB, free: 12.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.16, allocations: 354.8 kB / 0.4927 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.1602, allocations: 113.1 kB / 0.4928 GB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.1606, allocations: 310.2 kB / 0.4931 GB, free: 11.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/0.1612, allocations: 467.4 kB / 0.4936 GB, free: 11.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1613, allocations: 0 / 0.4936 GB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000856/0.1621, allocations: 0.5095 MB / 0.4941 GB, free: 10.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.1621, allocations: 4 kB / 0.4941 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.1622, allocations: 8 kB / 0.4941 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002224/0.1624, allocations: 40.84 kB / 0.4941 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003992/0.1628, allocations: 131.7 kB / 0.4942 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000438/0.1632, allocations: 0.5525 MB / 0.4948 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.1635, allocations: 20.06 kB / 0.4948 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.1635, allocations: 28 kB / 0.4948 GB, free: 9.805 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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.0003473/0.1639, allocations: 229.6 kB / 0.495 GB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.032e-05/0.164, allocations: 55.28 kB / 0.4951 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008277/0.1648, allocations: 331 kB / 0.4954 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.1648, allocations: 7.984 kB / 0.4954 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.1648, allocations: 0 / 0.4954 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1649, allocations: 0 / 0.4954 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/0.1664, allocations: 1.058 MB / 0.4964 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1664, allocations: 4 kB / 0.4964 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003607/0.1668, allocations: 75.91 kB / 0.4965 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001426/0.1669, allocations: 36.78 kB / 0.4966 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.658e-05/0.167, allocations: 11.98 kB / 0.4966 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000408/0.1674, allocations: 0.5525 MB / 0.4971 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1674, allocations: 0 / 0.4971 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008541/0.1682, allocations: 0.5592 MB / 0.4977 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.1684, allocations: 116.5 kB / 0.4978 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.1684, allocations: 12 kB / 0.4978 GB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.1686, allocations: 8 kB / 0.4978 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.432e-05/0.1687, allocations: 23.91 kB / 0.4978 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.1687, allocations: 16 kB / 0.4978 GB, free: 6.543 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003279/0.169, allocations: 275.1 kB / 0.4981 GB, free: 6.277 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.169, allocations: 3.938 kB / 0.4981 GB, free: 6.273 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005801/0.1696, allocations: 124 kB / 0.4982 GB, free: 6.152 MB / 382.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.y,inertia2b.w,torqueToAngle2b.y,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.001176/0.1708, allocations: 1.112 MB / 0.4993 GB, free: 4.992 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007243/0.1715, allocations: 364 kB / 0.4996 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1716, allocations: 0 / 0.4996 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.1718, allocations: 135.8 kB / 0.4998 GB, free: 4.504 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005415/0.1724, allocations: 84.23 kB / 0.4998 GB, free: 4.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.192/0.3644, allocations: 4.886 MB / 0.5046 GB, free: 40.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000506/0.365, allocations: 0.9625 MB / 0.5056 GB, free: 39.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002341/0.3652, allocations: 55.98 kB / 0.5056 GB, free: 39.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002903/0.3655, allocations: 294.8 kB / 0.5059 GB, free: 39.84 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3655, allocations: 2.344 kB / 0.5059 GB, free: 39.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03611/0.4016, allocations: 9.156 MB / 0.5148 GB, free: 38.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.31, allocations: 18.52 kB / 0.5149 GB, free: 38.3 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1)