Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009709/0.0009707, allocations: 102.7 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 191.4 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.3 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002614/0.0002614, allocations: 8 kB / 306.8 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1097, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003576/0.1134, allocations: 2.714 MB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1155, allocations: 1.033 MB / 362 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002022/0.1157, allocations: 4 kB / 362.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002914/0.116, allocations: 63.55 kB / 362.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003784/0.1164, allocations: 159 kB / 362.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.1168, allocations: 135.8 kB / 362.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006439/0.1175, allocations: 0.5807 MB / 363 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.1177, allocations: 114.1 kB / 363.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004147/0.1181, allocations: 259.1 kB / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003689/0.1185, allocations: 275 kB / 363.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.454e-05/0.1186, allocations: 32 kB / 363.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002059/0.1188, allocations: 71.98 kB / 363.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.119, allocations: 115.5 kB / 363.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.1191, allocations: 101.5 kB / 363.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005023/0.1196, allocations: 459 kB / 364.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.1196, allocations: 4 kB / 364.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1196, allocations: 0 / 364.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1196, allocations: 0 / 364.4 MB, free: 7.621 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001422/0.1211, allocations: 0.7679 MB / 365.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.1211, allocations: 8.031 kB / 365.2 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001503/0.1213, allocations: 83.44 kB / 365.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002378/0.1215, allocations: 71.33 kB / 365.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004408/0.122, allocations: 338 kB / 365.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.122, allocations: 32.95 kB / 365.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.95e-05/0.1221, allocations: 44 kB / 365.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008675/0.123, allocations: 470.3 kB / 366.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/0.123, allocations: 7.906 kB / 366.2 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.811e-05/0.1231, allocations: 20 kB / 366.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.1231, allocations: 12 kB / 366.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009578/0.1241, allocations: 463.7 kB / 366.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.1262, allocations: 1.184 MB / 367.8 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008783/0.1271, allocations: 426.5 kB / 368.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005076/0.1276, allocations: 270.4 kB / 368.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.1276, allocations: 8.5 kB / 368.5 MB, free: 3.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.1277, allocations: 43.12 kB / 368.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.154e-06/0.1277, allocations: 0 / 368.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004808/0.1325, allocations: 2.383 MB / 371 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/0.1326, allocations: 63.95 kB / 371 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003172/0.1329, allocations: 296.6 kB / 371.3 MB, free: 376 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.133, allocations: 41.7 kB / 371.4 MB, free: 328 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.1331, allocations: 193.3 kB / 371.5 MB, free: 132 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.204/0.3371, allocations: 205.7 kB / 371.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.3372, allocations: 12.69 kB / 371.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3374, allocations: 350.5 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005473/0.3379, allocations: 228.1 kB / 372.3 MB, free: 19.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005104/0.3384, allocations: 275.6 kB / 372.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004171/0.3389, allocations: 191.1 kB / 372.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3389, allocations: 1.203 kB / 372.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001582/0.3405, allocations: 0.7155 MB / 373.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3405, allocations: 6.172 kB / 373.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.3405, allocations: 0 / 373.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009709/0.3415, allocations: 329.8 kB / 373.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003559/0.3419, allocations: 92.39 kB / 373.9 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/0.343, allocations: 1.386 MB / 375.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005245/0.3435, allocations: 104.1 kB / 375.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/0.3436, allocations: 19.66 kB / 375.4 MB, free: 18.18 MB / 302.1 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 (55): * Single equations (assignments): 53 * 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 10,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002333/0.3438, allocations: 182.2 kB / 375.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.582e-05/0.3439, allocations: 42.11 kB / 375.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.3441, allocations: 58.83 kB / 375.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.3441, allocations: 6.984 kB / 375.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3441, allocations: 0 / 375.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.3441, allocations: 3.094 kB / 375.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/0.3468, allocations: 1.471 MB / 377.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3468, allocations: 6.297 kB / 377.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.3472, allocations: 85.59 kB / 377.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006399/0.3478, allocations: 300.7 kB / 377.6 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.965e-05/0.3479, allocations: 23.55 kB / 377.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009687/0.3489, allocations: 1.35 MB / 378.9 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3489, allocations: 2.203 kB / 378.9 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.3506, allocations: 1.058 MB / 380 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.3508, allocations: 177.3 kB / 380.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.52e-05/0.3509, allocations: 23.36 kB / 380.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004074/0.3513, allocations: 84.83 kB / 380.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.3515, allocations: 111.2 kB / 380.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.626e-05/0.3516, allocations: 25.67 kB / 380.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002181/0.3518, allocations: 215 kB / 380.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3518, allocations: 4 kB / 380.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004985/0.3523, allocations: 126.7 kB / 380.7 MB, free: 15.12 MB / 302.1 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 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * 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 8,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.002629/0.3549, allocations: 1.879 MB / 382.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.3563, allocations: 0.5668 MB / 383.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3563, allocations: 4.062 kB / 383.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007357/0.357, allocations: 340.6 kB / 383.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006383/0.3577, allocations: 96.89 kB / 383.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00684/0.3645, allocations: 3.618 MB / 387.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.3649, allocations: 0.8383 MB / 388.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002051/0.3651, allocations: 39.2 kB / 388.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.3653, allocations: 142.4 kB / 388.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3653, allocations: 4 kB / 388.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02666/0.392, allocations: 12.54 MB / 400.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.3922, allocations: 254.6 kB / 401 MB, free: 3.641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/2.555, allocations: 0 / 401 MB, free: 3.641 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat