Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.002455/0.002454, allocations: 186.9 kB / 16.41 MB, free: 5.727 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.074/2.074, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001142/0.001142, allocations: 91.39 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5085/0.5085, allocations: 43.56 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000711/0.000711, allocations: 12 kB / 431.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1604, allocations: 58.85 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5111/0.6715, allocations: 84.65 MB / 0.5615 GB, free: 1.906 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.6718, allocations: 63.97 kB / 0.5615 GB, free: 1.844 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007683/0.6795, allocations: 2.018 MB / 0.5635 GB, free: 15.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6796, allocations: 0 / 0.5635 GB, free: 15.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.6796, allocations: 4 kB / 0.5635 GB, free: 15.84 MB / 394.7 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.0005788/0.6802, allocations: 387.1 kB / 0.5639 GB, free: 15.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.6803, allocations: 12.03 kB / 0.5639 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.239e-05/0.6803, allocations: 46.55 kB / 0.5639 GB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.957e-05/0.6804, allocations: 12.22 kB / 0.564 GB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.6806, allocations: 171 kB / 0.5641 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.6806, allocations: 8.234 kB / 0.5641 GB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.871e-05/0.6807, allocations: 15.91 kB / 0.5641 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.681, allocations: 125 kB / 0.5643 GB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.681, allocations: 11.7 kB / 0.5643 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.6811, allocations: 8 kB / 0.5643 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.6811, allocations: 4 kB / 0.5643 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.6813, allocations: 56.94 kB / 0.5643 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.6824, allocations: 0.5464 MB / 0.5649 GB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.6827, allocations: 81.17 kB / 0.565 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.6827, allocations: 4 kB / 0.565 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.6827, allocations: 38.56 kB / 0.565 GB, free: 14.15 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 4.889e-06/0.6828, allocations: 0 / 0.565 GB, free: 14.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008957/0.6837, allocations: 301.4 kB / 0.5653 GB, free: 13.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.841e-05/0.6837, allocations: 85.06 kB / 0.5654 GB, free: 13.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.6839, allocations: 114.2 kB / 0.5655 GB, free: 13.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.6839, allocations: 29.7 kB / 0.5655 GB, free: 13.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.6841, allocations: 182.1 kB / 0.5657 GB, free: 13.37 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.6841, allocations: 35.55 kB / 0.5657 GB, free: 13.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-06/0.6841, allocations: 0 / 0.5657 GB, free: 13.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.6843, allocations: 318.8 kB / 0.566 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.28e-05/0.6844, allocations: 23.98 kB / 0.566 GB, free: 12.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.6845, allocations: 88.52 kB / 0.5661 GB, free: 12.88 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.6847, allocations: 32.38 kB / 0.5661 GB, free: 12.84 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.6847, allocations: 4 kB / 0.5662 GB, free: 12.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004695/0.6851, allocations: 167 kB / 0.5663 GB, free: 12.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.6852, allocations: 7.953 kB / 0.5663 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.6852, allocations: 4 kB / 0.5663 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002554/0.6855, allocations: 41.95 kB / 0.5664 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.6856, allocations: 31.86 kB / 0.5664 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002476/0.6881, allocations: 2.544 MB / 0.5689 GB, free: 9.773 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.6883, allocations: 8.219 kB / 0.5689 GB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.6883, allocations: 16 kB / 0.5689 GB, free: 9.75 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.6885, allocations: 117.8 kB / 0.569 GB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.956e-05/0.6886, allocations: 7.953 kB / 0.569 GB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.26e-05/0.6886, allocations: 22.95 kB / 0.569 GB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.6886, allocations: 0 / 0.569 GB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.6886, allocations: 0 / 0.569 GB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.6887, allocations: 4 kB / 0.569 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00035/0.689, allocations: 193.5 kB / 0.5692 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.689, allocations: 12.02 kB / 0.5692 GB, free: 9.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.6892, allocations: 12 kB / 0.5693 GB, free: 9.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001854/0.6894, allocations: 41.64 kB / 0.5693 GB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.6895, allocations: 4 kB / 0.5693 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002526/0.692, allocations: 2.543 MB / 0.5718 GB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.692, allocations: 0 / 0.5718 GB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004701/0.6925, allocations: 319.1 kB / 0.5721 GB, free: 6.129 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.69e-05/0.6926, allocations: 92.98 kB / 0.5722 GB, free: 6.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.6927, allocations: 4 kB / 0.5722 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.6928, allocations: 1.312 kB / 0.5722 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.501e-05/0.6929, allocations: 11.94 kB / 0.5722 GB, free: 6.004 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.6929, allocations: 4 kB / 0.5722 GB, free: 6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.269e-05/0.693, allocations: 95.92 kB / 0.5723 GB, free: 5.906 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.693, allocations: 0 / 0.5723 GB, free: 5.906 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004939/0.6935, allocations: 32 kB / 0.5723 GB, free: 5.875 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.phi,J2.w,J3.phi,J4.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 (6): * Single equations (assignments): 4 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008362/0.6943, allocations: 0.9157 MB / 0.5732 GB, free: 4.926 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006318/0.695, allocations: 303.5 kB / 0.5735 GB, free: 4.609 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.695, allocations: 4 kB / 0.5735 GB, free: 4.605 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004035/0.6954, allocations: 254.1 kB / 0.5737 GB, free: 4.332 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.6959, allocations: 26.14 kB / 0.5738 GB, free: 4.309 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002805/0.6987, allocations: 2.4 MB / 0.5761 GB, free: 1.809 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004149/0.6992, allocations: 0.7161 MB / 0.5768 GB, free: 1.066 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.028e-05/0.6993, allocations: 31.42 kB / 0.5768 GB, free: 1.035 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6993, allocations: 0 / 0.5768 GB, free: 1.035 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.878/3.578, allocations: 2.894 MB / 0.5797 GB, free: 14.15 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat does not exist to compare? outputFormat=mat