Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 92.89 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 184 kB / 17.89 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 223.2 MB / 241.9 MB, free: 14.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2025/0.2025, allocations: 44.23 MB / 337.2 MB, free: 2.57 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000496/0.0004962, allocations: 12.78 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1347, allocations: 61.93 MB / 471.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002699/0.1375, allocations: 2.381 MB / 474 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1385, allocations: 0.6742 MB / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.1387, allocations: 11.94 kB / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.1389, allocations: 39.69 kB / 474.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.1391, allocations: 107.1 kB / 474.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.1393, allocations: 63.92 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003966/0.1397, allocations: 402 kB / 475.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.1399, allocations: 100.1 kB / 475.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.1401, allocations: 151.4 kB / 475.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.1403, allocations: 159.3 kB / 475.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.189e-05/0.1404, allocations: 20 kB / 475.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.785e-05/0.1404, allocations: 16 kB / 475.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.427e-05/0.1405, allocations: 63.75 kB / 475.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.7e-05/0.1406, allocations: 97.45 kB / 475.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.1409, allocations: 307.4 kB / 476.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1409, allocations: 0 / 476.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1409, allocations: 0 / 476.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1409, allocations: 0 / 476.2 MB, free: 9.016 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.0008344/0.1418, allocations: 0.5849 MB / 476.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.1418, allocations: 12.02 kB / 476.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.405e-05/0.1419, allocations: 74.53 kB / 476.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.082e-05/0.142, allocations: 39.53 kB / 476.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002843/0.1423, allocations: 267.3 kB / 477.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.1423, allocations: 33 kB / 477.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.1424, allocations: 43.86 kB / 477.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.143, allocations: 390.1 kB / 477.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.143, allocations: 15.84 kB / 477.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.143, allocations: 15.98 kB / 477.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.143, allocations: 12 kB / 477.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/0.1434, allocations: 230 kB / 477.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.1457, allocations: 1.727 MB / 479.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.1461, allocations: 262.4 kB / 479.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.1463, allocations: 102 kB / 480 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.1463, allocations: 4 kB / 480 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.1464, allocations: 54.44 kB / 480 MB, free: 4.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.693e-06/0.1464, allocations: 0 / 480 MB, free: 4.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006699/0.1471, allocations: 273.7 kB / 480.3 MB, free: 4.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.1472, allocations: 209.6 kB / 480.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.1475, allocations: 278.8 kB / 480.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.1475, allocations: 29.7 kB / 480.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.1477, allocations: 239.4 kB / 481.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.148e-05/0.1478, allocations: 126.2 kB / 481.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.679e-05/0.1478, allocations: 11.94 kB / 481.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.148, allocations: 346.8 kB / 481.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.1482, allocations: 101.2 kB / 481.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004482/0.1487, allocations: 432.8 kB / 482 MB, free: 2.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002833/0.1489, allocations: 163.8 kB / 482.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.149, allocations: 4 kB / 482.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008271/0.1498, allocations: 0.5289 MB / 482.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.1498, allocations: 12 kB / 482.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.1498, allocations: 15.95 kB / 482.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.959e-05/0.1499, allocations: 19.98 kB / 482.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.1503, allocations: 147.8 kB / 482.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.336e-05/0.1503, allocations: 24.36 kB / 483 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.1506, allocations: 71.42 kB / 483 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.1507, allocations: 32 kB / 483.1 MB, free: 1.586 MB / 350.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.0001748/0.1509, allocations: 178.1 kB / 483.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.151, allocations: 31.62 kB / 483.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.026e-05/0.1511, allocations: 33.78 kB / 483.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.1511, allocations: 7.953 kB / 483.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.1511, allocations: 0 / 483.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.1511, allocations: 11.98 kB / 483.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.1523, allocations: 0.6436 MB / 484 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1523, allocations: 0 / 484 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004335/0.1528, allocations: 95.84 kB / 484 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.1528, allocations: 4 kB / 484.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.1528, allocations: 12.05 kB / 484.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.1528, allocations: 8 kB / 484.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1528, allocations: 4 kB / 484.1 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007511/0.1536, allocations: 0.8375 MB / 484.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.876e-05/0.1537, allocations: 109.3 kB / 485 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.1537, allocations: 16 kB / 485 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/0.1541, allocations: 11.98 kB / 485 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.903e-05/0.1542, allocations: 23.92 kB / 485.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.1542, allocations: 15.98 kB / 485.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001728/0.1544, allocations: 182 kB / 485.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.074e-06/0.1544, allocations: 0 / 485.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007143/0.1551, allocations: 111.7 kB / 485.4 MB, free: 15.14 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.001121/0.1562, allocations: 1.39 MB / 486.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004934/0.1567, allocations: 293 kB / 487.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1567, allocations: 0 / 487.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.1569, allocations: 97.14 kB / 487.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000938/0.1578, allocations: 65.66 kB / 487.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004442/0.1623, allocations: 3.266 MB / 490.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.1627, allocations: 0.7955 MB / 491.3 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.1629, allocations: 43.27 kB / 491.3 MB, free: 8.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.1631, allocations: 115.4 kB / 491.4 MB, free: 8.797 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1631, allocations: 0 / 491.4 MB, free: 8.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.1819, allocations: 5.974 MB / 497.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/0.1822, allocations: 187.6 kB / 497.6 MB, free: 2.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.861/2.043, allocations: 3.938 kB / 497.6 MB, free: 2.746 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat