Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001298/0.001298, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.248/0.248, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.002491/0.002491, allocations: 79.92 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1309, allocations: 62.46 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003807/0.1348, allocations: 1.665 MB / 481.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003608/0.1352, allocations: 111.6 kB / 482 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.74e-05/0.1353, allocations: 4 kB / 482 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.869e-05/0.1354, allocations: 11.86 kB / 482 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.1355, allocations: 35.66 kB / 482 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001685/0.1357, allocations: 35.89 kB / 482.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.1359, allocations: 119.5 kB / 482.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.1361, allocations: 45.03 kB / 482.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.1363, allocations: 47.8 kB / 482.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.1364, allocations: 51.78 kB / 482.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.1364, allocations: 8 kB / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.476e-05/0.1365, allocations: 8 kB / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.056e-05/0.1365, allocations: 19.92 kB / 482.4 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.638e-05/0.1366, allocations: 55.73 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001834/0.1368, allocations: 131.9 kB / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1368, allocations: 0 / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1368, allocations: 0 / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1368, allocations: 0 / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005643/0.1374, allocations: 403.3 kB / 482.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1374, allocations: 8.031 kB / 482.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.367e-05/0.1375, allocations: 46.73 kB / 483 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.352e-05/0.1375, allocations: 16.75 kB / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.1377, allocations: 184.3 kB / 483.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.1378, allocations: 16.55 kB / 483.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.891e-05/0.1378, allocations: 24.28 kB / 483.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.1381, allocations: 125.5 kB / 483.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.1381, allocations: 3.938 kB / 483.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.1381, allocations: 4 kB / 483.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1381, allocations: 4 kB / 483.4 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.1382, allocations: 67.89 kB / 483.4 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008527/0.1391, allocations: 0.5333 MB / 484 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.1393, allocations: 93.16 kB / 484.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.13e-05/0.1393, allocations: 29.66 kB / 484.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.1394, allocations: 0 / 484.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.1394, allocations: 38.64 kB / 484.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.793e-06/0.1394, allocations: 0 / 484.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006581/0.1401, allocations: 309.3 kB / 484.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.1401, allocations: 77.11 kB / 484.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.1402, allocations: 125.8 kB / 484.6 MB, free: 440 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.1403, allocations: 25.7 kB / 484.6 MB, free: 408 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.932e-05/0.1404, allocations: 123.6 kB / 484.8 MB, free: 280 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.1404, allocations: 35.53 kB / 484.8 MB, free: 244 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.041e-05/0.1405, allocations: 29.72 kB / 484.8 MB, free: 208 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1407, allocations: 322.8 kB / 485.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.871e-05/0.1407, allocations: 27.98 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.509e-05/0.1408, allocations: 90.91 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.141, allocations: 124.5 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.141, allocations: 7.938 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002793/0.1413, allocations: 155.1 kB / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1413, allocations: 8 kB / 485.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1413, allocations: 3.938 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001979/0.1415, allocations: 45.89 kB / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.805e-05/0.1416, allocations: 23.98 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/0.144, allocations: 2.735 MB / 488.4 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.776e-05/0.1441, allocations: 15.84 kB / 488.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.1441, allocations: 4 kB / 488.4 MB, free: 12.29 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001427/0.1443, allocations: 129.9 kB / 488.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/0.1443, allocations: 11.84 kB / 488.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.897e-05/0.1444, allocations: 7.906 kB / 488.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1444, allocations: 4 kB / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1444, allocations: 0 / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1444, allocations: 0 / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003091/0.1447, allocations: 205.6 kB / 488.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1447, allocations: 4 kB / 488.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.925e-05/0.1448, allocations: 15.98 kB / 488.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001055/0.1449, allocations: 37.64 kB / 488.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.145, allocations: 4 kB / 488.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/0.1473, allocations: 2.734 MB / 491.5 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1473, allocations: 0 / 491.5 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.1477, allocations: 308.3 kB / 491.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.246e-05/0.1478, allocations: 89.02 kB / 491.9 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.1478, allocations: 4.031 kB / 491.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.343e-05/0.1479, allocations: 4 kB / 491.9 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-05/0.148, allocations: 8 kB / 491.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.148, allocations: 0 / 491.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.351e-05/0.1481, allocations: 95.27 kB / 492 MB, free: 8.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1481, allocations: 4 kB / 492 MB, free: 8.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003861/0.1485, allocations: 35.94 kB / 492.1 MB, free: 8.219 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007526/0.1492, allocations: 0.8351 MB / 492.9 MB, free: 7.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006119/0.1498, allocations: 301.2 kB / 493.2 MB, free: 7.031 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1499, allocations: 0 / 493.2 MB, free: 7.031 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.1502, allocations: 257.8 kB / 493.4 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005595/0.1508, allocations: 47.97 kB / 493.5 MB, free: 6.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.1536, allocations: 1.984 MB / 495.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.1541, allocations: 0.7045 MB / 496.2 MB, free: 3.848 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.889e-05/0.1541, allocations: 12.88 kB / 496.2 MB, free: 3.836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.557e-05/0.1542, allocations: 31.42 kB / 496.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1542, allocations: 0 / 496.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04185/0.1961, allocations: 2.925 MB / 499.1 MB, free: 1.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.833/10.03, allocations: 10.92 kB / 499.1 MB, free: 0.9961 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3_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_Directions3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1)