Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_cpp_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.001587/0.001587, allocations: 188.1 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001159/0.001158, allocations: 98.84 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.000391, allocations: 12 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.09977, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004339/0.1042, allocations: 2.456 MB / 377.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.1069, allocations: 0.9557 MB / 378 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003313/0.1072, allocations: 11.94 kB / 378.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.1075, allocations: 39.69 kB / 378.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004886/0.108, allocations: 151.5 kB / 378.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007027/0.1087, allocations: 155.7 kB / 378.4 MB, free: 11.56 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009753/0.1097, allocations: 408.3 kB / 378.8 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003442/0.1101, allocations: 110.1 kB / 378.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006213/0.1107, allocations: 243.1 kB / 379.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005599/0.1113, allocations: 263 kB / 379.4 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.1114, allocations: 28 kB / 379.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002762/0.1117, allocations: 59.97 kB / 379.5 MB, free: 10.46 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.1119, allocations: 91.69 kB / 379.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.1121, allocations: 109.4 kB / 379.7 MB, free: 10.26 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007997/0.1129, allocations: 423.1 kB / 380.1 MB, free: 9.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1129, allocations: 0 / 380.1 MB, free: 9.848 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.113, allocations: 0 / 380.1 MB, free: 9.848 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.113, allocations: 0 / 380.1 MB, free: 9.848 MB / 282.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.002358/0.1153, allocations: 0.7173 MB / 380.8 MB, free: 9.082 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.147e-05/0.1154, allocations: 8.031 kB / 380.8 MB, free: 9.074 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002786/0.1157, allocations: 91.42 kB / 380.9 MB, free: 8.973 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.1159, allocations: 55.34 kB / 381 MB, free: 8.918 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006948/0.1166, allocations: 314.1 kB / 381.3 MB, free: 8.574 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.065e-05/0.1167, allocations: 33 kB / 381.3 MB, free: 8.543 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001786/0.1169, allocations: 43.91 kB / 381.3 MB, free: 8.5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.1185, allocations: 482.3 kB / 381.8 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.487e-05/0.1186, allocations: 3.984 kB / 381.8 MB, free: 8.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.679e-05/0.1187, allocations: 20 kB / 381.8 MB, free: 8 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1187, allocations: 15.94 kB / 381.9 MB, free: 7.984 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.1205, allocations: 495.7 kB / 382.3 MB, free: 7.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003635/0.1242, allocations: 1.164 MB / 383.5 MB, free: 6.281 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/0.1257, allocations: 400.8 kB / 383.9 MB, free: 5.883 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.761e-05/0.1258, allocations: 4.438 kB / 383.9 MB, free: 5.879 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.1258, allocations: 38.94 kB / 383.9 MB, free: 5.832 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.106e-06/0.1258, allocations: 8 kB / 383.9 MB, free: 5.824 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.009025/0.1349, allocations: 2.429 MB / 386.4 MB, free: 3.262 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.135, allocations: 59.91 kB / 386.4 MB, free: 3.191 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004463/0.1354, allocations: 279.4 kB / 386.7 MB, free: 2.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.961e-05/0.1355, allocations: 45.69 kB / 386.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.1357, allocations: 247.6 kB / 387 MB, free: 2.617 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/0.136, allocations: 193.3 kB / 387.2 MB, free: 2.426 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.1361, allocations: 8 kB / 387.2 MB, free: 2.418 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1362, allocations: 342.8 kB / 387.5 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008871/0.1371, allocations: 245.2 kB / 387.8 MB, free: 1.836 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009011/0.138, allocations: 292.8 kB / 388 MB, free: 1.543 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007333/0.1388, allocations: 207.2 kB / 388.2 MB, free: 1.344 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.1388, allocations: 0 / 388.2 MB, free: 1.344 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002522/0.1414, allocations: 0.7407 MB / 389 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.1414, allocations: 4 kB / 389 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1414, allocations: 0 / 389 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/0.143, allocations: 0.4935 MB / 389.5 MB, free: 88 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2973/0.4404, allocations: 90.27 kB / 389.6 MB, free: 20.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.4424, allocations: 1.389 MB / 391 MB, free: 19.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.4435, allocations: 107.1 kB / 391.1 MB, free: 19.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.348e-05/0.4436, allocations: 19.69 kB / 391.1 MB, free: 19.68 MB / 282.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): 56 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003398/0.444, allocations: 175 kB / 391.3 MB, free: 19.56 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.4441, allocations: 40.5 kB / 391.3 MB, free: 19.56 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001893/0.4443, allocations: 57.77 kB / 391.4 MB, free: 19.55 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.4444, allocations: 13.64 kB / 391.4 MB, free: 19.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.4444, allocations: 0 / 391.4 MB, free: 19.55 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.4444, allocations: 3.141 kB / 391.4 MB, free: 19.55 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004851/0.4492, allocations: 1.479 MB / 392.8 MB, free: 19.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.4493, allocations: 1.188 kB / 392.9 MB, free: 19.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007738/0.4501, allocations: 90.69 kB / 392.9 MB, free: 19.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/0.4515, allocations: 475.1 kB / 393.4 MB, free: 19.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.4516, allocations: 24.11 kB / 393.4 MB, free: 19.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/0.4533, allocations: 1.374 MB / 394.8 MB, free: 17.89 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.4533, allocations: 2.641 kB / 394.8 MB, free: 17.89 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003426/0.4568, allocations: 1.16 MB / 396 MB, free: 17.29 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/0.4572, allocations: 163.5 kB / 396.1 MB, free: 17.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.4573, allocations: 20.39 kB / 396.1 MB, free: 17.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008078/0.4581, allocations: 80.2 kB / 396.2 MB, free: 17.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004071/0.4586, allocations: 111.5 kB / 396.3 MB, free: 17.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.78e-05/0.4586, allocations: 23 kB / 396.4 MB, free: 17.14 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003143/0.459, allocations: 200.4 kB / 396.5 MB, free: 17.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.459, allocations: 5.125 kB / 396.6 MB, free: 17.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007975/0.4598, allocations: 135.7 kB / 396.7 MB, free: 17 MB / 282.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.003979/0.4638, allocations: 2.075 MB / 398.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.4661, allocations: 0.6053 MB / 399.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.4661, allocations: 0 / 399.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.4674, allocations: 334.6 kB / 399.7 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007763/0.4682, allocations: 71.47 kB / 399.8 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.481, allocations: 3.818 MB / 403.6 MB, free: 13.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.4814, allocations: 0.8313 MB / 404.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003616/0.4818, allocations: 137.2 kB / 404.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4818, allocations: 0 / 404.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.061/3.543, allocations: 9.969 MB / 414.5 MB, free: 7.293 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat