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.001145/0.001145, allocations: 180 kB / 17.01 MB, free: 5.125 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.236/1.236, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008368/0.0008366, allocations: 86.69 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002701/0.0002701, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1971/0.1974, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.088/0.2855, allocations: 80.51 MB / 456.4 MB, free: 144 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.2858, allocations: 67.97 kB / 456.5 MB, free: 76 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02147/0.3073, allocations: 7.74 MB / 464.2 MB, free: 8.312 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3073, allocations: 4 kB / 464.2 MB, free: 8.309 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.3073, allocations: 8 kB / 464.2 MB, free: 8.301 MB / 346.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.00129/0.3086, allocations: 0.7292 MB / 465 MB, free: 7.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.3087, allocations: 12.03 kB / 465 MB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001534/0.3088, allocations: 91.42 kB / 465.1 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.3089, allocations: 51.38 kB / 465.1 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003992/0.3093, allocations: 318 kB / 465.4 MB, free: 7.012 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.3094, allocations: 29 kB / 465.5 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.121e-05/0.3095, allocations: 44 kB / 465.5 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008605/0.3103, allocations: 462.3 kB / 466 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.3104, allocations: 3.906 kB / 466 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.997e-05/0.3104, allocations: 23.94 kB / 466 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.3105, allocations: 12 kB / 466 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008813/0.3113, allocations: 459.6 kB / 466.4 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.3135, allocations: 1.164 MB / 467.6 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008122/0.3143, allocations: 401.4 kB / 468 MB, free: 4.379 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.975e-05/0.3144, allocations: 4.438 kB / 468 MB, free: 4.375 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.3144, allocations: 46.95 kB / 468 MB, free: 4.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 2.505e-06/0.3144, allocations: 0 / 468 MB, free: 4.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.005014/0.3194, allocations: 2.354 MB / 470.4 MB, free: 1.836 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.3195, allocations: 59.95 kB / 470.5 MB, free: 1.766 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.3198, allocations: 234.1 kB / 470.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.096e-05/0.3199, allocations: 41.7 kB / 470.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.32, allocations: 173.4 kB / 470.9 MB, free: 1.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.3202, allocations: 205.2 kB / 471.1 MB, free: 1.105 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.353e-05/0.3202, allocations: 16 kB / 471.1 MB, free: 1.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3203, allocations: 346.8 kB / 471.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004333/0.3208, allocations: 225.1 kB / 471.7 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004527/0.3212, allocations: 272.8 kB / 471.9 MB, free: 256 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/0.3216, allocations: 187.2 kB / 472.1 MB, free: 72 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3216, allocations: 0 / 472.1 MB, free: 72 kB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00161/0.3232, allocations: 0.7404 MB / 472.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.3233, allocations: 4 kB / 472.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.3233, allocations: 4 kB / 472.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007725/0.3241, allocations: 401.4 kB / 473.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.3244, allocations: 87.89 kB / 473.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.3256, allocations: 1.327 MB / 474.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005035/0.3261, allocations: 100 kB / 474.8 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.516e-05/0.3262, allocations: 23.98 kB / 474.8 MB, free: 13.32 MB / 362.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.000301/0.3265, allocations: 173.6 kB / 475 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.611e-05/0.3266, allocations: 39.53 kB / 475 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001533/0.3281, allocations: 0.7404 MB / 475.7 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.3282, allocations: 7.984 kB / 475.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3282, allocations: 3.938 kB / 475.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3282, allocations: 0 / 475.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002593/0.3308, allocations: 1.403 MB / 477.2 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3308, allocations: 0 / 477.2 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.3312, allocations: 92.05 kB / 477.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006964/0.3319, allocations: 385.3 kB / 477.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.332, allocations: 23.97 kB / 477.6 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.3331, allocations: 1.292 MB / 478.9 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.3331, allocations: 7.984 kB / 478.9 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.3352, allocations: 1.092 MB / 480 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.3354, allocations: 160.6 kB / 480.2 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.606e-05/0.3355, allocations: 20 kB / 480.2 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.3359, allocations: 83.86 kB / 480.3 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.3362, allocations: 116.2 kB / 480.4 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.592e-05/0.3362, allocations: 27.97 kB / 480.4 MB, free: 7.422 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001774/0.3364, allocations: 194 kB / 480.6 MB, free: 7.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3364, allocations: 0 / 480.6 MB, free: 7.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005009/0.3369, allocations: 139.9 kB / 480.8 MB, free: 7.098 MB / 362.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.002513/0.3394, allocations: 2.007 MB / 482.8 MB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.3407, allocations: 0.6235 MB / 483.4 MB, free: 4.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3407, allocations: 0 / 483.4 MB, free: 4.383 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006641/0.3414, allocations: 318.7 kB / 483.7 MB, free: 4.074 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.3419, allocations: 69.98 kB / 483.8 MB, free: 4.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007303/0.3492, allocations: 3.672 MB / 487.4 MB, free: 264 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.3497, allocations: 0.8404 MB / 488.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001848/0.3499, allocations: 35.27 kB / 488.3 MB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.3501, allocations: 127.4 kB / 488.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of SimCode: time 8.22e-07/0.3502, allocations: 4 kB / 488.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02844/0.3786, allocations: 11.99 MB / 0.4887 GB, free: 3.254 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/0.3789, allocations: 201.7 kB / 0.4889 GB, free: 3.016 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.307/2.686, allocations: 3.938 kB / 0.4889 GB, free: 3.012 MB / 378.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