Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.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.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions",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.001495/0.001495, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.046/2.046, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001961/0.001961, allocations: 82.19 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.298/0.298, allocations: 43.48 MB / 353.6 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.591e-05/1.634e-05, allocations: 0 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4082/0.4083, allocations: 58.85 MB / 477.2 MB, free: 5.184 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.5705, allocations: 86.23 MB / 0.5502 GB, free: 13 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.5708, allocations: 79.89 kB / 0.5503 GB, free: 12.92 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02934/0.6002, allocations: 6.198 MB / 0.5563 GB, free: 6.676 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6002, allocations: 0 / 0.5563 GB, free: 6.676 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.281e-05/0.6003, allocations: 12 kB / 0.5563 GB, free: 6.664 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001358/0.6016, allocations: 0.5849 MB / 0.5569 GB, free: 6.035 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.6017, allocations: 8.031 kB / 0.5569 GB, free: 6.027 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.6018, allocations: 39.53 kB / 0.557 GB, free: 5.988 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004831/0.6023, allocations: 275.3 kB / 0.5572 GB, free: 5.676 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.6024, allocations: 12 kB / 0.5572 GB, free: 5.664 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.6025, allocations: 31.84 kB / 0.5573 GB, free: 5.633 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006316/0.6031, allocations: 189.5 kB / 0.5574 GB, free: 5.449 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000782/0.6039, allocations: 302.4 kB / 0.5577 GB, free: 5.141 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.97e-05/0.604, allocations: 0 / 0.5577 GB, free: 5.141 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.552e-05/0.604, allocations: 11.94 kB / 0.5577 GB, free: 5.129 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.6041, allocations: 12 kB / 0.5578 GB, free: 5.117 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.6066, allocations: 1.008 MB / 0.5587 GB, free: 4.062 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007172/0.6073, allocations: 307.5 kB / 0.559 GB, free: 3.734 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003533/0.6077, allocations: 147.9 kB / 0.5592 GB, free: 3.582 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-05/0.6078, allocations: 7.172 kB / 0.5592 GB, free: 3.578 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/0.6078, allocations: 42.55 kB / 0.5592 GB, free: 3.527 MB / 395.1 MB Notification: Performance of pre-optimization done (n=39): time 3.336e-06/0.6078, allocations: 3.938 kB / 0.5592 GB, free: 3.523 MB / 395.1 MB Notification: Performance of matching and sorting (n=57): time 0.005306/0.6132, allocations: 2.122 MB / 0.5613 GB, free: 1.129 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.6133, allocations: 106.8 kB / 0.5614 GB, free: 1 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.6137, allocations: 158 kB / 0.5615 GB, free: 0.8359 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 9.762e-05/0.6138, allocations: 25.7 kB / 0.5616 GB, free: 0.8047 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.614, allocations: 251.5 kB / 0.5618 GB, free: 0.5586 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003264/0.6144, allocations: 193.1 kB / 0.562 GB, free: 376 kB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.718e-05/0.6145, allocations: 0 / 0.562 GB, free: 376 kB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.6147, allocations: 330.8 kB / 0.5623 GB, free: 36 kB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004993/0.6152, allocations: 105.2 kB / 0.5624 GB, free: 15.93 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005914/0.6158, allocations: 202.7 kB / 0.5626 GB, free: 15.69 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005933/0.6165, allocations: 135.9 kB / 0.5627 GB, free: 15.56 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.6165, allocations: 0 / 0.5627 GB, free: 15.56 MB / 411.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002183/0.6187, allocations: 463.6 kB / 0.5632 GB, free: 15.09 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.6188, allocations: 7.953 kB / 0.5632 GB, free: 15.08 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.268e-05/0.6188, allocations: 4 kB / 0.5632 GB, free: 15.08 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009156/0.6198, allocations: 118.5 kB / 0.5633 GB, free: 14.95 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.6209, allocations: 99.88 kB / 0.5634 GB, free: 14.86 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008174/0.6291, allocations: 4.479 MB / 0.5678 GB, free: 10.03 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000655/0.6299, allocations: 19.98 kB / 0.5678 GB, free: 10.01 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.13e-05/0.63, allocations: 23.94 kB / 0.5678 GB, free: 9.988 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 48 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002476/0.6302, allocations: 112.1 kB / 0.5679 GB, free: 9.875 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001983/0.6322, allocations: 419.4 kB / 0.5683 GB, free: 9.445 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002639/0.6326, allocations: 39.62 kB / 0.5684 GB, free: 9.406 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001929/0.6328, allocations: 41.89 kB / 0.5684 GB, free: 9.367 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.019e-05/0.6328, allocations: 7.953 kB / 0.5684 GB, free: 9.359 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.042e-05/0.6329, allocations: 4 kB / 0.5684 GB, free: 9.355 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.6329, allocations: 3.984 kB / 0.5684 GB, free: 9.352 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004775/0.6377, allocations: 1.187 MB / 0.5696 GB, free: 8.102 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.6378, allocations: 0 / 0.5696 GB, free: 8.102 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/0.6392, allocations: 99.81 kB / 0.5697 GB, free: 8.004 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008358/0.6401, allocations: 94.5 kB / 0.5698 GB, free: 7.902 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.6402, allocations: 12.09 kB / 0.5698 GB, free: 7.891 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006849/0.6471, allocations: 3.926 MB / 0.5736 GB, free: 3.613 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.531e-05/0.6472, allocations: 4.031 kB / 0.5736 GB, free: 3.609 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002848/0.65, allocations: 0.8862 MB / 0.5745 GB, free: 2.66 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.6503, allocations: 100.7 kB / 0.5746 GB, free: 2.543 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.6504, allocations: 7.984 kB / 0.5746 GB, free: 2.535 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006832/0.6511, allocations: 8 kB / 0.5746 GB, free: 2.527 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.6514, allocations: 51.86 kB / 0.5746 GB, free: 2.477 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-05/0.6515, allocations: 16.12 kB / 0.5746 GB, free: 2.461 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.6518, allocations: 136.4 kB / 0.5748 GB, free: 2.328 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.093e-06/0.6518, allocations: 0 / 0.5748 GB, free: 2.328 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001636/0.6534, allocations: 104 kB / 0.5749 GB, free: 2.227 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003527/0.657, allocations: 1.766 MB / 0.5766 GB, free: 400 kB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.6594, allocations: 0.6572 MB / 0.5772 GB, free: 15.7 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.6595, allocations: 0 / 0.5772 GB, free: 15.7 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.6612, allocations: 0.5414 MB / 0.5778 GB, free: 15.13 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.6624, allocations: 43.34 kB / 0.5778 GB, free: 15.09 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004547/0.6669, allocations: 0.9969 MB / 0.5788 GB, free: 14.04 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007817/0.6678, allocations: 0.8281 MB / 0.5796 GB, free: 13.18 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004617/0.6683, allocations: 131.4 kB / 0.5797 GB, free: 13.05 MB / 427.1 MB Notification: Performance of SimCode: time 5.45e-06/0.6683, allocations: 0 / 0.5797 GB, free: 13.05 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.839/3.508, allocations: 10.31 MB / 0.5898 GB, free: 2.734 MB / 427.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat does not exist to compare? outputFormat=mat