Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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) 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(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",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.001036/0.001036, allocations: 172.8 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007542/0.0007542, allocations: 90.64 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.394e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09379, allocations: 47.57 MB / 370.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3135/0.4073, allocations: 80.41 MB / 450.5 MB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.4076, allocations: 73.5 kB / 450.6 MB, free: 12.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02202/0.4297, allocations: 7.726 MB / 458.3 MB, free: 6.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4297, allocations: 0 / 458.3 MB, free: 6.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.873e-05/0.4298, allocations: 8 kB / 458.3 MB, free: 6.242 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00125/0.431, allocations: 0.6971 MB / 459 MB, free: 5.527 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.4311, allocations: 11.97 kB / 459 MB, free: 5.516 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.4312, allocations: 85.56 kB / 459.1 MB, free: 5.449 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.335e-05/0.4313, allocations: 51.44 kB / 459.2 MB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.4318, allocations: 320.9 kB / 459.5 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.4318, allocations: 32.69 kB / 459.5 MB, free: 5.051 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.977e-05/0.4319, allocations: 43.19 kB / 459.6 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007272/0.4327, allocations: 440.3 kB / 460 MB, free: 4.719 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.4327, allocations: 3.906 kB / 460 MB, free: 4.715 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.503e-05/0.4327, allocations: 15.69 kB / 460 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.4328, allocations: 12 kB / 460 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006397/0.4334, allocations: 406.7 kB / 460.4 MB, free: 4.426 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.4355, allocations: 1.156 MB / 461.6 MB, free: 3.246 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007155/0.4363, allocations: 384.9 kB / 461.9 MB, free: 2.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004052/0.4367, allocations: 234.1 kB / 462.2 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.904e-05/0.4368, allocations: 8.438 kB / 462.2 MB, free: 2.617 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.4368, allocations: 38.95 kB / 462.2 MB, free: 2.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 2.485e-06/0.4368, allocations: 0 / 462.2 MB, free: 2.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.002969/0.4398, allocations: 1.644 MB / 463.9 MB, free: 0.832 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.4399, allocations: 67.97 kB / 463.9 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002638/0.4401, allocations: 227.5 kB / 464.1 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.4402, allocations: 45.69 kB / 464.2 MB, free: 484 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.4403, allocations: 177.3 kB / 464.4 MB, free: 300 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.4405, allocations: 197.3 kB / 464.6 MB, free: 100 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.4405, allocations: 12 kB / 464.6 MB, free: 88 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.4407, allocations: 346.8 kB / 464.9 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/0.4411, allocations: 201.5 kB / 465.1 MB, free: 15.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/0.4414, allocations: 254.2 kB / 465.4 MB, free: 15.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.4417, allocations: 166 kB / 465.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4417, allocations: 0 / 465.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001408/0.4431, allocations: 0.6887 MB / 466.2 MB, free: 14.42 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.4432, allocations: 8 kB / 466.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/0.4432, allocations: 0 / 466.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000767/0.444, allocations: 381.4 kB / 466.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003461/0.4443, allocations: 91.89 kB / 466.7 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.4454, allocations: 1.327 MB / 468 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.446, allocations: 104.1 kB / 468.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-05/0.446, allocations: 23.98 kB / 468.1 MB, free: 12.44 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.4462, allocations: 141.7 kB / 468.3 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.4463, allocations: 43.47 kB / 468.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/0.4477, allocations: 0.6859 MB / 469 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.4477, allocations: 4 kB / 469 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4477, allocations: 0 / 469 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4477, allocations: 7.984 kB / 469 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00257/0.4503, allocations: 1.376 MB / 470.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.4503, allocations: 4 kB / 470.4 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003856/0.4507, allocations: 88.05 kB / 470.5 MB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007079/0.4515, allocations: 365.4 kB / 470.8 MB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.4516, allocations: 23.97 kB / 470.9 MB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.4528, allocations: 1.3 MB / 472.2 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4528, allocations: 4.156 kB / 472.2 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.4545, allocations: 0.9987 MB / 473.2 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.4547, allocations: 160.6 kB / 473.3 MB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.713e-05/0.4548, allocations: 23.98 kB / 473.3 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004374/0.4553, allocations: 84.19 kB / 473.4 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002618/0.4555, allocations: 116.1 kB / 473.5 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.248e-05/0.4556, allocations: 27.97 kB / 473.6 MB, free: 6.766 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001996/0.4558, allocations: 191.1 kB / 473.7 MB, free: 6.578 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4558, allocations: 0 / 473.7 MB, free: 6.578 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004931/0.4563, allocations: 132 kB / 473.9 MB, free: 6.449 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002181/0.4585, allocations: 1.935 MB / 475.8 MB, free: 4.445 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.4597, allocations: 0.5619 MB / 476.4 MB, free: 3.867 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4597, allocations: 0 / 476.4 MB, free: 3.867 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005839/0.4603, allocations: 306.3 kB / 476.7 MB, free: 3.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004723/0.4607, allocations: 74.3 kB / 476.7 MB, free: 3.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003674/0.4644, allocations: 1.428 MB / 478.2 MB, free: 2.016 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004401/0.4649, allocations: 0.8444 MB / 479 MB, free: 1.141 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.4651, allocations: 35.2 kB / 479 MB, free: 1.109 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.4653, allocations: 139.4 kB / 479.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4653, allocations: 0 / 479.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02864/0.4939, allocations: 11.94 MB / 491.1 MB, free: 5.027 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/0.4942, allocations: 180 kB / 491.3 MB, free: 4.801 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/2.629, allocations: 0 / 491.3 MB, free: 4.801 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat