Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002291/0.002297, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.098/2.098, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 90.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2941/0.2941, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004939/0.000494, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1285, allocations: 58.86 MB / 490.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008227/0.1367, allocations: 4.693 MB / 495 MB, free: 4.531 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005631/0.1424, allocations: 2.207 MB / 497.2 MB, free: 2.316 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.1436, allocations: 31.81 kB / 497.2 MB, free: 2.285 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005482/0.1441, allocations: 174.7 kB / 497.4 MB, free: 2.113 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.1452, allocations: 319 kB / 497.7 MB, free: 1.801 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001597/0.1468, allocations: 399.2 kB / 498.1 MB, free: 1.41 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001688/0.1486, allocations: 0.7408 MB / 498.9 MB, free: 0.668 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000872/0.1495, allocations: 425.9 kB / 499.3 MB, free: 244 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005126/0.15, allocations: 251 kB / 499.5 MB, free: 15.99 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004481/0.1505, allocations: 302.2 kB / 499.8 MB, free: 15.7 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-05/0.1506, allocations: 32 kB / 499.8 MB, free: 15.66 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003067/0.1509, allocations: 71.92 kB / 499.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.1511, allocations: 127.5 kB / 0.4883 GB, free: 15.47 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002593/0.1513, allocations: 185.2 kB / 0.4885 GB, free: 15.28 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001351/0.1527, allocations: 0.9312 MB / 0.4894 GB, free: 14.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1527, allocations: 0 / 0.4894 GB, free: 14.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1527, allocations: 3.938 kB / 0.4894 GB, free: 14.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.1528, allocations: 0 / 0.4894 GB, free: 14.34 MB / 346.7 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.002075/0.1548, allocations: 0.9745 MB / 0.4904 GB, free: 13.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.1549, allocations: 8.031 kB / 0.4904 GB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002311/0.1552, allocations: 143.7 kB / 0.4905 GB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.1554, allocations: 98.78 kB / 0.4906 GB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.1565, allocations: 0.5433 MB / 0.4911 GB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.091e-05/0.1566, allocations: 70 kB / 0.4912 GB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001905/0.1568, allocations: 91.91 kB / 0.4913 GB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.1591, allocations: 0.8736 MB / 0.4921 GB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-05/0.1592, allocations: 15.91 kB / 0.4922 GB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.1593, allocations: 39.95 kB / 0.4922 GB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.834e-05/0.1593, allocations: 24 kB / 0.4922 GB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.1611, allocations: 0.5268 MB / 0.4927 GB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005822/0.1669, allocations: 3.647 MB / 0.4963 GB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008187/0.1678, allocations: 217.9 kB / 0.4965 GB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003064/0.1681, allocations: 251.3 kB / 0.4967 GB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.1681, allocations: 34.56 kB / 0.4968 GB, free: 6.414 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.537e-06/0.1682, allocations: 0 / 0.4968 GB, free: 6.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=35): time 0.003607/0.1718, allocations: 1.316 MB / 0.4981 GB, free: 5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.1718, allocations: 55.41 kB / 0.4981 GB, free: 4.934 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006405/0.1725, allocations: 393.8 kB / 0.4985 GB, free: 4.539 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.1726, allocations: 33.69 kB / 0.4985 GB, free: 4.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/0.173, allocations: 0.4967 MB / 0.499 GB, free: 3.996 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.1731, allocations: 134.1 kB / 0.4991 GB, free: 3.863 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.1732, allocations: 16 kB / 0.4991 GB, free: 3.848 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1733, allocations: 330.8 kB / 0.4995 GB, free: 3.516 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.1737, allocations: 117 kB / 0.4996 GB, free: 3.398 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005198/0.1742, allocations: 310.2 kB / 0.4999 GB, free: 3.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004747/0.1747, allocations: 163.7 kB / 0.5 GB, free: 2.855 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.1748, allocations: 4 kB / 0.5 GB, free: 2.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001293/0.1761, allocations: 494.6 kB / 0.5005 GB, free: 2.359 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.1761, allocations: 8 kB / 0.5005 GB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.1761, allocations: 4 kB / 0.5005 GB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002821/0.1764, allocations: 40.83 kB / 0.5006 GB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007476/0.1772, allocations: 131.8 kB / 0.5007 GB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005199/0.1777, allocations: 0.5604 MB / 0.5012 GB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000354/0.1781, allocations: 19.98 kB / 0.5012 GB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.11e-05/0.1782, allocations: 28 kB / 0.5013 GB, free: 1.543 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005109/0.1787, allocations: 237.9 kB / 0.5015 GB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.1788, allocations: 47.44 kB / 0.5015 GB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.1798, allocations: 338.9 kB / 0.5019 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.1798, allocations: 4 kB / 0.5019 GB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1799, allocations: 0 / 0.5019 GB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.1799, allocations: 3.984 kB / 0.5019 GB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/0.1822, allocations: 1.068 MB / 0.5029 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1822, allocations: 0 / 0.5029 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007303/0.1829, allocations: 83.84 kB / 0.503 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002322/0.1832, allocations: 33 kB / 0.503 GB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.942e-05/0.1832, allocations: 12 kB / 0.503 GB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004721/0.1837, allocations: 0.5445 MB / 0.5036 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1837, allocations: 4.031 kB / 0.5036 GB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.185, allocations: 0.6186 MB / 0.5042 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.1852, allocations: 112.5 kB / 0.5043 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.11e-05/0.1853, allocations: 11.98 kB / 0.5043 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002649/0.1856, allocations: 12 kB / 0.5043 GB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-05/0.1857, allocations: 19.97 kB / 0.5043 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.1857, allocations: 12 kB / 0.5043 GB, free: 14.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004618/0.1862, allocations: 271.1 kB / 0.5046 GB, free: 13.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1862, allocations: 0 / 0.5046 GB, free: 13.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007923/0.187, allocations: 128 kB / 0.5047 GB, free: 13.8 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00189/0.1889, allocations: 1.534 MB / 0.5062 GB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.19, allocations: 328.9 kB / 0.5065 GB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.19, allocations: 0 / 0.5065 GB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004434/0.1904, allocations: 152.1 kB / 0.5067 GB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006206/0.1911, allocations: 65.78 kB / 0.5067 GB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.2011, allocations: 7.878 MB / 0.5144 GB, free: 3.598 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007961/0.202, allocations: 0.9755 MB / 0.5154 GB, free: 2.594 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000566/0.2026, allocations: 303.3 kB / 0.5157 GB, free: 2.301 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.2026, allocations: 0 / 0.5157 GB, free: 2.301 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.834/4.037, allocations: 14.07 MB / 0.5294 GB, free: 40.98 MB / 362.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat