Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",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.001285/0.001285, allocations: 177.2 kB / 8.005 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.793/1.793, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008234/0.0008233, allocations: 90.14 kB / 261.7 MB, free: 1.684 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.1955/0.1955, allocations: 43.49 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.519e-05/1.515e-05, allocations: 4 kB / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0917/0.09173, allocations: 58.86 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3409/0.4326, allocations: 87.55 MB / 0.5515 GB, free: 7.461 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/0.4329, allocations: 71.38 kB / 0.5516 GB, free: 7.426 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01079/0.4437, allocations: 4.492 MB / 0.556 GB, free: 3.746 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4437, allocations: 4 kB / 0.556 GB, free: 3.742 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.4438, allocations: 8 kB / 0.556 GB, free: 3.734 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006845/0.4445, allocations: 0.4969 MB / 0.5565 GB, free: 3.207 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4445, allocations: 8.031 kB / 0.5565 GB, free: 3.199 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.212e-05/0.4446, allocations: 31.67 kB / 0.5565 GB, free: 3.168 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.4448, allocations: 244 kB / 0.5567 GB, free: 2.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.4449, allocations: 8 kB / 0.5567 GB, free: 2.902 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.622e-05/0.4449, allocations: 12 kB / 0.5568 GB, free: 2.891 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003049/0.4452, allocations: 187.4 kB / 0.5569 GB, free: 2.773 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.4455, allocations: 207.8 kB / 0.5571 GB, free: 2.617 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.4455, allocations: 7.891 kB / 0.5571 GB, free: 2.609 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.4456, allocations: 4 kB / 0.5571 GB, free: 2.605 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.4456, allocations: 8 kB / 0.5572 GB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000975/0.4466, allocations: 0.6433 MB / 0.5578 GB, free: 2.035 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.4469, allocations: 204.2 kB / 0.558 GB, free: 1.895 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.447, allocations: 126.8 kB / 0.5581 GB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.41e-05/0.4471, allocations: 4.234 kB / 0.5581 GB, free: 1.812 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.607e-05/0.4471, allocations: 34.75 kB / 0.5581 GB, free: 1.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.783e-06/0.4471, allocations: 4 kB / 0.5581 GB, free: 1.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.001893/0.449, allocations: 1.101 MB / 0.5592 GB, free: 0.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.004e-05/0.449, allocations: 59.28 kB / 0.5593 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.749e-05/0.4491, allocations: 136.5 kB / 0.5594 GB, free: 0.5547 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.4492, allocations: 37.52 kB / 0.5594 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.959e-05/0.4492, allocations: 128.3 kB / 0.5596 GB, free: 408 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.4493, allocations: 109.9 kB / 0.5597 GB, free: 312 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.813e-05/0.4493, allocations: 0 / 0.5597 GB, free: 312 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.093e-05/0.4494, allocations: 334.5 kB / 0.56 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.4495, allocations: 98.28 kB / 0.5601 GB, free: 15.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.4497, allocations: 140.8 kB / 0.5602 GB, free: 15.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.45, allocations: 114.1 kB / 0.5603 GB, free: 15.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.45, allocations: 0 / 0.5603 GB, free: 15.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006215/0.4506, allocations: 362.3 kB / 0.5607 GB, free: 15.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.4506, allocations: 8 kB / 0.5607 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.4506, allocations: 0 / 0.5607 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004071/0.4511, allocations: 186 kB / 0.5609 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.4513, allocations: 51.91 kB / 0.5609 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007048/0.452, allocations: 0.7371 MB / 0.5616 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.4523, allocations: 39.95 kB / 0.5617 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.919e-05/0.4523, allocations: 19.92 kB / 0.5617 GB, free: 14.54 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.4525, allocations: 120.9 kB / 0.5618 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006929/0.4532, allocations: 347.5 kB / 0.5621 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.297e-05/0.4532, allocations: 27.67 kB / 0.5622 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007943/0.4541, allocations: 395.3 kB / 0.5625 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.4541, allocations: 7.938 kB / 0.5625 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.4541, allocations: 0 / 0.5625 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.4541, allocations: 0 / 0.5625 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.4557, allocations: 0.8576 MB / 0.5634 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.4557, allocations: 0 / 0.5634 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.4559, allocations: 52.03 kB / 0.5634 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000371/0.4563, allocations: 161.5 kB / 0.5636 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.981e-05/0.4564, allocations: 11.36 kB / 0.5636 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006722/0.457, allocations: 0.6933 MB / 0.5643 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.4571, allocations: 4.031 kB / 0.5643 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009774/0.458, allocations: 0.5985 MB / 0.5649 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.4582, allocations: 130.2 kB / 0.565 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.4583, allocations: 8.062 kB / 0.565 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.4585, allocations: 47.89 kB / 0.565 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.4587, allocations: 54.89 kB / 0.5651 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-05/0.4587, allocations: 15.92 kB / 0.5651 GB, free: 11.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.737e-05/0.4588, allocations: 116.4 kB / 0.5652 GB, free: 11.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4588, allocations: 0 / 0.5652 GB, free: 11.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004646/0.4593, allocations: 64 kB / 0.5653 GB, free: 11.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001531/0.4608, allocations: 1.298 MB / 0.5665 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005818/0.4614, allocations: 293.2 kB / 0.5668 GB, free: 9.922 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4614, allocations: 0 / 0.5668 GB, free: 9.922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.4617, allocations: 152.8 kB / 0.567 GB, free: 9.816 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.462, allocations: 21.48 kB / 0.567 GB, free: 9.805 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.4639, allocations: 0.7226 MB / 0.5677 GB, free: 9.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.4642, allocations: 0.7525 MB / 0.5684 GB, free: 8.312 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.909e-05/0.4643, allocations: 26.02 kB / 0.5684 GB, free: 8.289 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.692e-05/0.4644, allocations: 63.72 kB / 0.5685 GB, free: 8.266 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4644, allocations: 0 / 0.5685 GB, free: 8.266 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.487, allocations: 5.848 MB / 0.5742 GB, free: 2.43 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.4872, allocations: 152.7 kB / 0.5744 GB, free: 2.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.188, allocations: 0 / 0.5744 GB, free: 2.23 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat