Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.002429/0.002436, allocations: 189 kB / 16.4 MB, free: 5.621 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.301/2.301, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001167/0.001167, allocations: 94.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004244/0.0004246, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09851, allocations: 47.59 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003498/0.1021, allocations: 1.945 MB / 376.6 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00248/0.1046, allocations: 0.9692 MB / 377.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002359/0.1049, allocations: 4 kB / 377.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.1051, allocations: 35.7 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006576/0.1057, allocations: 143.6 kB / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005338/0.1063, allocations: 147.7 kB / 377.9 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005566/0.1069, allocations: 291.4 kB / 378.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.1071, allocations: 68.92 kB / 378.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003834/0.1075, allocations: 191.4 kB / 378.4 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004024/0.1079, allocations: 207.3 kB / 378.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.532e-05/0.108, allocations: 20 kB / 378.6 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003295/0.1083, allocations: 87.88 kB / 378.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.1085, allocations: 83.77 kB / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.1087, allocations: 85.5 kB / 378.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005899/0.1093, allocations: 359.3 kB / 379.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.1093, allocations: 0 / 379.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1093, allocations: 0 / 379.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.974e-06/0.1093, allocations: 0 / 379.2 MB, free: 10.7 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001859/0.1112, allocations: 0.6119 MB / 379.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.1113, allocations: 8.031 kB / 379.9 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.1114, allocations: 74.47 kB / 379.9 MB, free: 9.945 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004602/0.1119, allocations: 51.59 kB / 380 MB, free: 9.895 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007111/0.1126, allocations: 314.3 kB / 380.3 MB, free: 9.547 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.1128, allocations: 91.98 kB / 380.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.79e-05/0.1129, allocations: 32 kB / 380.4 MB, free: 9.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.1144, allocations: 416.9 kB / 380.8 MB, free: 8.992 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.1144, allocations: 7.922 kB / 380.8 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.08e-05/0.1145, allocations: 8 kB / 380.8 MB, free: 8.977 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.1145, allocations: 8 kB / 380.8 MB, free: 8.969 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001882/0.1164, allocations: 486.3 kB / 381.3 MB, free: 8.492 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.1195, allocations: 0.9969 MB / 382.3 MB, free: 7.441 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.1211, allocations: 412.5 kB / 382.7 MB, free: 7.031 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.129e-05/0.1212, allocations: 8.438 kB / 382.7 MB, free: 7.023 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.088e-05/0.1212, allocations: 39 kB / 382.8 MB, free: 6.977 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 3.767e-06/0.1213, allocations: 0 / 382.8 MB, free: 6.977 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.00969/0.131, allocations: 2.211 MB / 385 MB, free: 4.652 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.87e-05/0.1311, allocations: 81.67 kB / 385.1 MB, free: 4.555 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005245/0.1316, allocations: 263 kB / 385.3 MB, free: 4.289 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.872e-05/0.1317, allocations: 33.7 kB / 385.3 MB, free: 4.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.1319, allocations: 195.6 kB / 385.5 MB, free: 4.055 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003093/0.1322, allocations: 181.3 kB / 385.7 MB, free: 3.875 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-05/0.1323, allocations: 19.94 kB / 385.7 MB, free: 3.855 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.1325, allocations: 330.8 kB / 386.1 MB, free: 3.523 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008487/0.1333, allocations: 201 kB / 386.2 MB, free: 3.328 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008664/0.1342, allocations: 248.6 kB / 386.5 MB, free: 3.074 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007914/0.135, allocations: 194.1 kB / 386.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1351, allocations: 0 / 386.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002232/0.1373, allocations: 0.6097 MB / 387.3 MB, free: 2.27 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.777e-05/0.1374, allocations: 11.95 kB / 387.3 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.1374, allocations: 3.984 kB / 387.3 MB, free: 2.254 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001331/0.1388, allocations: 254.1 kB / 387.6 MB, free: 2.004 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/0.1394, allocations: 71.89 kB / 387.6 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2694/0.4088, allocations: 2.729 MB / 390.4 MB, free: 19.49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006049/0.4095, allocations: 39.66 kB / 390.4 MB, free: 19.49 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.628e-05/0.4096, allocations: 18.19 kB / 390.4 MB, free: 19.49 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: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.000298/0.4099, allocations: 160.5 kB / 390.6 MB, free: 19.37 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.41, allocations: 32.25 kB / 390.6 MB, free: 19.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.4102, allocations: 48.84 kB / 390.6 MB, free: 19.36 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4102, allocations: 8.359 kB / 390.7 MB, free: 19.36 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4102, allocations: 1.781 kB / 390.7 MB, free: 19.36 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.4102, allocations: 2.344 kB / 390.7 MB, free: 19.36 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/0.4143, allocations: 1.291 MB / 391.9 MB, free: 19.03 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.158e-06/0.4143, allocations: 0 / 391.9 MB, free: 19.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006427/0.415, allocations: 67.62 kB / 392 MB, free: 19.03 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.4162, allocations: 248.4 kB / 392.3 MB, free: 19.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.4163, allocations: 19.28 kB / 392.3 MB, free: 19.01 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005982/0.4223, allocations: 2.648 MB / 394.9 MB, free: 17.08 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4224, allocations: 3.188 kB / 394.9 MB, free: 17.08 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003387/0.4258, allocations: 0.9929 MB / 395.9 MB, free: 16.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003499/0.4262, allocations: 153.1 kB / 396.1 MB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.764e-05/0.4263, allocations: 12.88 kB / 396.1 MB, free: 16.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000567/0.4269, allocations: 39.89 kB / 396.1 MB, free: 16.46 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003426/0.4272, allocations: 75.33 kB / 396.2 MB, free: 16.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.386e-05/0.4273, allocations: 17.25 kB / 396.2 MB, free: 16.45 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003944/0.4277, allocations: 193.5 kB / 396.4 MB, free: 16.35 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4277, allocations: 0 / 396.4 MB, free: 16.35 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001059/0.4288, allocations: 154 kB / 396.5 MB, free: 16.33 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.004069/0.4329, allocations: 1.656 MB / 398.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002779/0.4357, allocations: 0.7104 MB / 398.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.4358, allocations: 0 / 398.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001684/0.4375, allocations: 483.2 kB / 399.4 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006481/0.4382, allocations: 32.2 kB / 399.4 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007402/0.4456, allocations: 2.635 MB / 402.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.4461, allocations: 0.8021 MB / 402.9 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003577/0.4464, allocations: 104.6 kB / 403 MB, free: 12.45 MB / 282.7 MB Notification: Performance of SimCode: time 1.684e-06/0.4464, allocations: 0 / 403 MB, free: 12.45 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.238/3.684, allocations: 7.019 MB / 410 MB, free: 9.918 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat