Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 180.7 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009146/0.0009145, allocations: 96.06 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003017, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2728, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1186/0.3915, allocations: 81.42 MB / 483 MB, free: 15.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.3918, allocations: 75.95 kB / 483.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02332/0.4152, allocations: 7.882 MB / 491 MB, free: 7.035 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4152, allocations: 0 / 491 MB, free: 7.035 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.915e-05/0.4152, allocations: 12 kB / 491 MB, free: 7.023 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001453/0.4167, allocations: 0.7292 MB / 491.7 MB, free: 6.242 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.4168, allocations: 12.03 kB / 491.7 MB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/0.4169, allocations: 87.36 kB / 491.8 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.417, allocations: 47.44 kB / 491.8 MB, free: 6.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004468/0.4175, allocations: 306.2 kB / 492.1 MB, free: 5.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.4175, allocations: 40.98 kB / 492.2 MB, free: 5.711 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.125e-05/0.4176, allocations: 40 kB / 492.2 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008983/0.4185, allocations: 466.2 kB / 492.7 MB, free: 5.211 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.4186, allocations: 7.859 kB / 492.7 MB, free: 5.203 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.236e-05/0.4186, allocations: 16 kB / 492.7 MB, free: 5.188 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.4187, allocations: 12 kB / 492.7 MB, free: 5.176 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009131/0.4196, allocations: 447.7 kB / 493.1 MB, free: 4.738 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002364/0.422, allocations: 1.172 MB / 494.3 MB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008392/0.4228, allocations: 397 kB / 494.7 MB, free: 3.117 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.723e-05/0.4229, allocations: 12.42 kB / 494.7 MB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.4229, allocations: 39 kB / 494.8 MB, free: 3.059 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 2.886e-06/0.4229, allocations: 0 / 494.8 MB, free: 3.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.005378/0.4283, allocations: 2.357 MB / 497.1 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.4284, allocations: 55.97 kB / 497.2 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.4287, allocations: 238.1 kB / 497.4 MB, free: 276 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.255e-05/0.4288, allocations: 45.69 kB / 497.4 MB, free: 224 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.4289, allocations: 177.4 kB / 497.6 MB, free: 40 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.4291, allocations: 201.3 kB / 497.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.82e-05/0.4292, allocations: 16 kB / 497.8 MB, free: 15.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4294, allocations: 350.6 kB / 498.2 MB, free: 15.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004429/0.4298, allocations: 225.2 kB / 498.4 MB, free: 15.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/0.4303, allocations: 272.7 kB / 498.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003848/0.4307, allocations: 191.2 kB / 498.8 MB, free: 14.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4307, allocations: 0 / 498.8 MB, free: 14.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001672/0.4324, allocations: 0.7327 MB / 499.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.4324, allocations: 4 kB / 499.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.539e-05/0.4325, allocations: 3.984 kB / 499.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008131/0.4333, allocations: 397.4 kB / 500 MB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/0.4336, allocations: 95.78 kB / 0.4883 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.4349, allocations: 1.319 MB / 0.4896 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/0.4355, allocations: 112 kB / 0.4897 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.464e-05/0.4356, allocations: 20 kB / 0.4898 GB, free: 12.05 MB / 378.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 () * Number of clocked 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.0002978/0.4359, allocations: 165.7 kB / 0.4899 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.066e-05/0.436, allocations: 39.53 kB / 0.49 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.4376, allocations: 0.7404 MB / 0.4907 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.4376, allocations: 8 kB / 0.4907 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4377, allocations: 0 / 0.4907 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.4377, allocations: 7.922 kB / 0.4907 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0027/0.4404, allocations: 1.407 MB / 0.4921 GB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.4404, allocations: 0 / 0.4921 GB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.4408, allocations: 87.89 kB / 0.4922 GB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007202/0.4415, allocations: 377.5 kB / 0.4925 GB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.4416, allocations: 15.98 kB / 0.4925 GB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.4428, allocations: 1.308 MB / 0.4938 GB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4428, allocations: 4.031 kB / 0.4938 GB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/0.4449, allocations: 1.088 MB / 0.4949 GB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003076/0.4452, allocations: 160.6 kB / 0.495 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.185e-05/0.4453, allocations: 27.94 kB / 0.4951 GB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004348/0.4458, allocations: 91.98 kB / 0.4951 GB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.446, allocations: 108.2 kB / 0.4952 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.135e-05/0.4461, allocations: 31.97 kB / 0.4953 GB, free: 6.152 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002225/0.4463, allocations: 186 kB / 0.4955 GB, free: 5.973 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4463, allocations: 4 kB / 0.4955 GB, free: 5.969 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006104/0.447, allocations: 132 kB / 0.4956 GB, free: 5.84 MB / 378.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) * Number of clocked states: 0 () * 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.002965/0.4499, allocations: 2.027 MB / 0.4976 GB, free: 3.754 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.4514, allocations: 0.6195 MB / 0.4982 GB, free: 3.113 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4514, allocations: 0 / 0.4982 GB, free: 3.113 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007394/0.4521, allocations: 334.4 kB / 0.4985 GB, free: 2.789 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005881/0.4527, allocations: 56.14 kB / 0.4985 GB, free: 2.738 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2078/0.6605, allocations: 3.669 MB / 0.5021 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.6609, allocations: 0.8347 MB / 0.5029 GB, free: 99.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002083/0.6611, allocations: 34.34 kB / 0.503 GB, free: 99.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.6613, allocations: 128.7 kB / 0.5031 GB, free: 99.68 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6613, allocations: 0 / 0.5031 GB, free: 99.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.6868, allocations: 11.98 MB / 0.5148 GB, free: 96.25 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/0.687, allocations: 210.2 kB / 0.515 GB, free: 96.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.403/3.089, allocations: 0 / 0.515 GB, free: 96.01 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat