Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009169/0.000917, allocations: 94.61 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1987/0.1987, allocations: 45.15 MB / 383.8 MB, free: 216 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.482e-05/1.475e-05, allocations: 4 kB / 453.3 MB, free: 75.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.09491, allocations: 63.24 MB / 0.5044 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3963/0.4913, allocations: 88.39 MB / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.4915, allocations: 69.89 kB / 0.5908 GB, free: 13.78 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01696/0.5085, allocations: 6.44 MB / 0.5971 GB, free: 8.441 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5085, allocations: 0 / 0.5971 GB, free: 8.441 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.045e-05/0.5086, allocations: 11.98 kB / 0.5971 GB, free: 8.43 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008735/0.5094, allocations: 0.5877 MB / 0.5977 GB, free: 7.824 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.5095, allocations: 12.03 kB / 0.5977 GB, free: 7.812 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003307/0.5098, allocations: 71.5 kB / 0.5978 GB, free: 7.742 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.5101, allocations: 276.6 kB / 0.5981 GB, free: 7.453 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.5102, allocations: 14.73 kB / 0.5981 GB, free: 7.441 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.671e-05/0.5102, allocations: 27.91 kB / 0.5981 GB, free: 7.414 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003746/0.5106, allocations: 187.8 kB / 0.5983 GB, free: 7.293 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004672/0.5111, allocations: 309.9 kB / 0.5986 GB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.5111, allocations: 0 / 0.5986 GB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.5111, allocations: 3.953 kB / 0.5986 GB, free: 7.047 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.5112, allocations: 12 kB / 0.5986 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.5125, allocations: 1.014 MB / 0.5996 GB, free: 6.148 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004672/0.513, allocations: 305.5 kB / 0.5999 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/0.5133, allocations: 149.7 kB / 0.6 GB, free: 5.801 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.5133, allocations: 8 kB / 0.6 GB, free: 5.793 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.5133, allocations: 38.5 kB / 0.6001 GB, free: 5.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 1.924e-06/0.5134, allocations: 0 / 0.6001 GB, free: 5.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.003121/0.5165, allocations: 2.118 MB / 0.6021 GB, free: 3.617 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/0.5166, allocations: 114.8 kB / 0.6022 GB, free: 3.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.5167, allocations: 162.9 kB / 0.6024 GB, free: 3.332 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.5168, allocations: 25.7 kB / 0.6024 GB, free: 3.301 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.5169, allocations: 189.7 kB / 0.6026 GB, free: 3.141 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.517, allocations: 189.9 kB / 0.6028 GB, free: 2.977 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.632e-05/0.517, allocations: 0 / 0.6028 GB, free: 2.977 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.5172, allocations: 352.4 kB / 0.6031 GB, free: 2.637 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.5174, allocations: 96.75 kB / 0.6032 GB, free: 2.582 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.5176, allocations: 198.8 kB / 0.6034 GB, free: 2.402 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.5178, allocations: 142.4 kB / 0.6035 GB, free: 2.312 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.5178, allocations: 0 / 0.6035 GB, free: 2.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000773/0.5186, allocations: 470.3 kB / 0.604 GB, free: 1.945 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.5187, allocations: 16.05 kB / 0.604 GB, free: 1.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.5187, allocations: 4 kB / 0.604 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003161/0.519, allocations: 112 kB / 0.6041 GB, free: 1.828 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003696/0.5194, allocations: 103.5 kB / 0.6042 GB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003562/0.5229, allocations: 4.485 MB / 0.6086 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.5232, allocations: 11.98 kB / 0.6086 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.5232, allocations: 18.31 kB / 0.6086 GB, free: 13.25 MB / 410.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.0001311/0.5234, allocations: 116.9 kB / 0.6087 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008059/0.5242, allocations: 421.1 kB / 0.6091 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.034e-05/0.5243, allocations: 31.62 kB / 0.6092 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.959e-05/0.5244, allocations: 43.52 kB / 0.6092 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.5244, allocations: 11.95 kB / 0.6092 GB, free: 12.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5244, allocations: 4 kB / 0.6092 GB, free: 12.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.5244, allocations: 7.922 kB / 0.6092 GB, free: 12.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/0.5261, allocations: 1.188 MB / 0.6104 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.5261, allocations: 0 / 0.6104 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004193/0.5266, allocations: 99.81 kB / 0.6105 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002632/0.5268, allocations: 85.34 kB / 0.6106 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.5269, allocations: 8.734 kB / 0.6106 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003094/0.53, allocations: 3.938 MB / 0.6144 GB, free: 7.469 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.53, allocations: 4.031 kB / 0.6144 GB, free: 7.465 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.5311, allocations: 0.8851 MB / 0.6153 GB, free: 6.684 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.38e-05/0.5312, allocations: 105 kB / 0.6154 GB, free: 6.562 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.5313, allocations: 4 kB / 0.6154 GB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.5315, allocations: 16.11 kB / 0.6154 GB, free: 6.543 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.5316, allocations: 55.25 kB / 0.6154 GB, free: 6.496 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.5316, allocations: 15.75 kB / 0.6155 GB, free: 6.484 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001108/0.5318, allocations: 129.4 kB / 0.6156 GB, free: 6.371 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.004e-06/0.5318, allocations: 0 / 0.6156 GB, free: 6.371 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006802/0.5325, allocations: 103.9 kB / 0.6157 GB, free: 6.27 MB / 410.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.00144/0.5339, allocations: 1.772 MB / 0.6174 GB, free: 4.609 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009608/0.5349, allocations: 0.6675 MB / 0.6181 GB, free: 4.023 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5349, allocations: 0 / 0.6181 GB, free: 4.023 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005958/0.5355, allocations: 0.5271 MB / 0.6186 GB, free: 3.527 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004365/0.5359, allocations: 38.73 kB / 0.6186 GB, free: 3.496 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.5377, allocations: 0.9591 MB / 0.6196 GB, free: 2.562 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/0.5381, allocations: 0.8281 MB / 0.6204 GB, free: 1.711 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.5383, allocations: 31.27 kB / 0.6204 GB, free: 1.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.5384, allocations: 130.4 kB / 0.6205 GB, free: 1.637 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5384, allocations: 0 / 0.6205 GB, free: 1.637 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.5652, allocations: 6.567 MB / 0.6269 GB, free: 11.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/0.5655, allocations: 137.6 kB / 0.6271 GB, free: 10.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.146/2.712, allocations: 5.484 kB / 0.6271 GB, free: 10.91 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat does not exist to compare? outputFormat=mat