Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008851/0.000885, allocations: 96.77 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.3 MB / 246 MB, free: 12.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2244/0.2244, allocations: 45.91 MB / 344.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000338/0.0003384, allocations: 12 kB / 418.2 MB, free: 20.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1252, allocations: 63.47 MB / 481.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002863/0.1281, allocations: 2.405 MB / 484 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1295, allocations: 0.7131 MB / 484.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002972/0.1298, allocations: 8 kB / 484.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001676/0.13, allocations: 43.64 kB / 484.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002607/0.1303, allocations: 111.1 kB / 484.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003029/0.1306, allocations: 59.94 kB / 485 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.131, allocations: 409.9 kB / 485.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.1312, allocations: 104.2 kB / 485.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002587/0.1315, allocations: 147.4 kB / 485.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.1317, allocations: 155.3 kB / 485.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.797e-05/0.1318, allocations: 20 kB / 485.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.343e-05/0.1319, allocations: 20 kB / 485.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.23e-05/0.1319, allocations: 63.75 kB / 485.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.145e-05/0.132, allocations: 97.52 kB / 486 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002951/0.1323, allocations: 311.4 kB / 486.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1323, allocations: 3.938 kB / 486.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1323, allocations: 0 / 486.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.936e-06/0.1324, allocations: 4 kB / 486.3 MB, free: 0.6289 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0007871/0.1332, allocations: 0.5771 MB / 486.9 MB, free: 4 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.679e-05/0.1332, allocations: 12.02 kB / 486.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.638e-05/0.1333, allocations: 78.47 kB / 486.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.1335, allocations: 67.52 kB / 487 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.1338, allocations: 272.1 kB / 487.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.1339, allocations: 29 kB / 487.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.497e-05/0.1339, allocations: 43.91 kB / 487.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.1345, allocations: 394.1 kB / 487.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.1346, allocations: 3.906 kB / 487.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.1346, allocations: 16 kB / 487.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.1346, allocations: 12 kB / 487.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003959/0.135, allocations: 227.7 kB / 488 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.1372, allocations: 1.739 MB / 489.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004373/0.1376, allocations: 266.3 kB / 490 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.1378, allocations: 102 kB / 490.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.1378, allocations: 8 kB / 490.1 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.1379, allocations: 42.56 kB / 490.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.004e-06/0.1379, allocations: 0 / 490.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006701/0.1386, allocations: 281.3 kB / 490.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/0.1387, allocations: 213.6 kB / 490.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.1389, allocations: 274.8 kB / 490.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.1389, allocations: 29.8 kB / 490.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.1391, allocations: 235.3 kB / 491.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.669e-05/0.1392, allocations: 126.4 kB / 491.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-05/0.1392, allocations: 8 kB / 491.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1394, allocations: 342.8 kB / 491.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.1395, allocations: 97.27 kB / 491.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000375/0.1399, allocations: 436.8 kB / 492.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.1402, allocations: 171.8 kB / 492.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.1402, allocations: 4 kB / 492.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000752/0.141, allocations: 0.5285 MB / 492.8 MB, free: 9.492 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.141, allocations: 8.844 kB / 492.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.141, allocations: 12 kB / 492.8 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.03e-05/0.1411, allocations: 20.09 kB / 492.9 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004071/0.1415, allocations: 155.7 kB / 493 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.1e-05/0.1415, allocations: 23.92 kB / 493 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.1418, allocations: 63.38 kB / 493.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.449e-05/0.1418, allocations: 32 kB / 493.1 MB, free: 9.184 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.142, allocations: 181.5 kB / 493.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.1421, allocations: 39.61 kB / 493.4 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.452e-05/0.1422, allocations: 33.78 kB / 493.4 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1422, allocations: 4 kB / 493.4 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.1422, allocations: 4 kB / 493.4 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1422, allocations: 0 / 493.4 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.1434, allocations: 0.6436 MB / 494 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.1434, allocations: 4.062 kB / 494 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.1438, allocations: 91.88 kB / 494.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.1438, allocations: 4 kB / 494.1 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.1439, allocations: 8.625 kB / 494.1 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1439, allocations: 4 kB / 494.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.1439, allocations: 4 kB / 494.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006767/0.1446, allocations: 0.8514 MB / 495 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.834e-05/0.1446, allocations: 104.9 kB / 495.1 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.487e-05/0.1447, allocations: 11.98 kB / 495.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003261/0.145, allocations: 12 kB / 495.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.1451, allocations: 35.86 kB / 495.2 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.1451, allocations: 7.938 kB / 495.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001492/0.1453, allocations: 182 kB / 495.3 MB, free: 6.844 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1453, allocations: 0 / 495.3 MB, free: 6.844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006861/0.146, allocations: 103.8 kB / 495.4 MB, free: 6.742 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009539/0.1469, allocations: 1.391 MB / 496.8 MB, free: 5.316 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005897/0.1475, allocations: 302.1 kB / 497.1 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1475, allocations: 0 / 497.1 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.1477, allocations: 96.02 kB / 497.2 MB, free: 4.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009402/0.1487, allocations: 62.94 kB / 497.3 MB, free: 4.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004453/0.1531, allocations: 3.282 MB / 0.4888 GB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.1535, allocations: 0.7916 MB / 0.4896 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.1537, allocations: 47.25 kB / 0.4897 GB, free: 0.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.1538, allocations: 115.4 kB / 0.4898 GB, free: 396 kB / 366.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1538, allocations: 0 / 0.4898 GB, free: 396 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01707/0.1709, allocations: 5.95 MB / 0.4956 GB, free: 10.59 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/0.1712, allocations: 196.8 kB / 0.4958 GB, free: 10.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.051, allocations: 7.938 kB / 0.4958 GB, free: 10.34 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat