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.001549/0.001549, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.053/2.053, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001118/0.001117, allocations: 86.7 kB / 267.5 MB, free: 14.04 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.3037/0.3037, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.559e-05/3.567e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1129, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4777/0.5907, allocations: 86.89 MB / 0.5577 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.591, allocations: 75.73 kB / 0.5578 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02764/0.6186, allocations: 6.253 MB / 0.5639 GB, free: 11.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6187, allocations: 0 / 0.5639 GB, free: 11.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.22e-05/0.6187, allocations: 15.98 kB / 0.5639 GB, free: 11.32 MB / 378.7 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.001266/0.62, allocations: 0.5755 MB / 0.5645 GB, free: 10.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.6201, allocations: 12.03 kB / 0.5645 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001269/0.6202, allocations: 77.2 kB / 0.5646 GB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.6203, allocations: 39.53 kB / 0.5646 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004522/0.6208, allocations: 284.7 kB / 0.5649 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.6209, allocations: 26.91 kB / 0.5649 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.783e-05/0.621, allocations: 42.91 kB / 0.565 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008863/0.6219, allocations: 359.9 kB / 0.5653 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.6219, allocations: 0 / 0.5653 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/0.622, allocations: 25.45 kB / 0.5653 GB, free: 10 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.622, allocations: 8 kB / 0.5653 GB, free: 9.992 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006077/0.6226, allocations: 215.6 kB / 0.5655 GB, free: 9.848 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/0.625, allocations: 1.103 MB / 0.5666 GB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007714/0.6259, allocations: 329.9 kB / 0.5669 GB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003742/0.6263, allocations: 160.4 kB / 0.5671 GB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.909e-05/0.6263, allocations: 7.938 kB / 0.5671 GB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/0.6264, allocations: 42.88 kB / 0.5671 GB, free: 8.457 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 3.056e-06/0.6264, allocations: 4 kB / 0.5671 GB, free: 8.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.005243/0.6316, allocations: 2.266 MB / 0.5693 GB, free: 6.234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.909e-05/0.6318, allocations: 106.8 kB / 0.5695 GB, free: 6.105 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.6321, allocations: 221.5 kB / 0.5697 GB, free: 5.906 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.797e-05/0.6322, allocations: 36.83 kB / 0.5697 GB, free: 5.871 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.6324, allocations: 234.6 kB / 0.5699 GB, free: 5.668 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000206/0.6326, allocations: 205.2 kB / 0.5701 GB, free: 5.492 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/0.6326, allocations: 6.938 kB / 0.5701 GB, free: 5.492 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.6328, allocations: 333.5 kB / 0.5704 GB, free: 5.168 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/0.6331, allocations: 117.8 kB / 0.5706 GB, free: 5.094 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.6336, allocations: 207.5 kB / 0.5708 GB, free: 4.906 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.634, allocations: 145.6 kB / 0.5709 GB, free: 4.816 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.634, allocations: 7.938 kB / 0.5709 GB, free: 4.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00143/0.6355, allocations: 0.496 MB / 0.5714 GB, free: 4.422 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.6355, allocations: 7.984 kB / 0.5714 GB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.6355, allocations: 4 kB / 0.5714 GB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005861/0.6361, allocations: 124.8 kB / 0.5715 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007289/0.6369, allocations: 99.12 kB / 0.5716 GB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005775/0.6427, allocations: 4.666 MB / 0.5762 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/0.6432, allocations: 26.23 kB / 0.5762 GB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.251e-05/0.6433, allocations: 15.88 kB / 0.5762 GB, free: 15.53 MB / 394.7 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.0001879/0.6435, allocations: 131.9 kB / 0.5763 GB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.6436, allocations: 43.55 kB / 0.5764 GB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.6438, allocations: 51.83 kB / 0.5764 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.426e-05/0.6438, allocations: 8 kB / 0.5764 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.6438, allocations: 3.938 kB / 0.5764 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.6438, allocations: 7.984 kB / 0.5764 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.6468, allocations: 1.305 MB / 0.5777 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.6469, allocations: 7.984 kB / 0.5777 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008445/0.6477, allocations: 95.14 kB / 0.5778 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004839/0.6482, allocations: 97.33 kB / 0.5779 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.726e-05/0.6483, allocations: 18.84 kB / 0.5779 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004524/0.6528, allocations: 4.082 MB / 0.5819 GB, free: 9.773 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.6529, allocations: 8.016 kB / 0.5819 GB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.6549, allocations: 0.9411 MB / 0.5828 GB, free: 8.949 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.655, allocations: 104.7 kB / 0.5829 GB, free: 8.828 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.931e-05/0.6551, allocations: 13.94 kB / 0.5829 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004291/0.6556, allocations: 25.53 kB / 0.583 GB, free: 8.805 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.6557, allocations: 46.25 kB / 0.583 GB, free: 8.766 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.6558, allocations: 15.31 kB / 0.583 GB, free: 8.754 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002476/0.656, allocations: 172.9 kB / 0.5832 GB, free: 8.609 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6561, allocations: 0 / 0.5832 GB, free: 8.609 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000957/0.657, allocations: 124.1 kB / 0.5833 GB, free: 8.508 MB / 394.7 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.002462/0.6595, allocations: 1.839 MB / 0.5851 GB, free: 6.801 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001693/0.6612, allocations: 0.7177 MB / 0.5858 GB, free: 6.164 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.6613, allocations: 192 / 0.5858 GB, free: 6.164 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.6625, allocations: 0.5683 MB / 0.5864 GB, free: 5.625 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007118/0.6633, allocations: 45.59 kB / 0.5864 GB, free: 5.598 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002981/0.6663, allocations: 1.034 MB / 0.5874 GB, free: 4.613 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005742/0.6669, allocations: 0.8366 MB / 0.5882 GB, free: 3.746 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.6672, allocations: 139.5 kB / 0.5884 GB, free: 3.699 MB / 394.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6672, allocations: 0 / 0.5884 GB, free: 3.699 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.074/3.741, allocations: 10.52 MB / 0.5986 GB, free: 9.246 MB / 410.7 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