Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008076/0.0008077, allocations: 102.1 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009185/0.0009185, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246 MB, free: 11.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.000321, allocations: 4 kB / 306.8 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.119, allocations: 51.5 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003031/0.1221, allocations: 2.128 MB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.1239, allocations: 1.054 MB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.1241, allocations: 4 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.1244, allocations: 51.67 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004346/0.1248, allocations: 158.8 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.1252, allocations: 135.2 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004808/0.1256, allocations: 454.5 kB / 362.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.1258, allocations: 81 kB / 362.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003646/0.1262, allocations: 207.3 kB / 362.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.1266, allocations: 239.2 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.441e-05/0.1266, allocations: 24 kB / 362.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.1269, allocations: 107.9 kB / 362.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.127, allocations: 91.69 kB / 363 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.557e-05/0.1271, allocations: 77.58 kB / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005409/0.1277, allocations: 407.2 kB / 363.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1277, allocations: 7.938 kB / 363.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1277, allocations: 0 / 363.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.1277, allocations: 0 / 363.5 MB, free: 8.746 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001184/0.1289, allocations: 0.6354 MB / 364.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1289, allocations: 12.02 kB / 364.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.405e-05/0.129, allocations: 66.55 kB / 364.2 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003528/0.1294, allocations: 67.5 kB / 364.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004564/0.1298, allocations: 306.3 kB / 364.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.13, allocations: 95.98 kB / 364.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.1301, allocations: 35.91 kB / 364.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009121/0.131, allocations: 416.9 kB / 365.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.131, allocations: 4 kB / 365.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.127e-05/0.131, allocations: 16 kB / 365.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1311, allocations: 4 kB / 365.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009632/0.132, allocations: 490.2 kB / 365.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.1339, allocations: 1.005 MB / 366.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009628/0.1349, allocations: 396.5 kB / 367 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004742/0.1353, allocations: 238 kB / 367.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.266e-05/0.1354, allocations: 4.438 kB / 367.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.1354, allocations: 47.17 kB / 367.3 MB, free: 4.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 3.166e-06/0.1354, allocations: 0 / 367.3 MB, free: 4.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.00555/0.141, allocations: 2.195 MB / 369.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.863e-05/0.1411, allocations: 85.67 kB / 369.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.1414, allocations: 268.2 kB / 369.8 MB, free: 2.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.36e-05/0.1415, allocations: 37.7 kB / 369.9 MB, free: 2.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.1416, allocations: 141 kB / 370 MB, free: 1.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.1418, allocations: 181.4 kB / 370.2 MB, free: 1.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.1418, allocations: 15.94 kB / 370.2 MB, free: 1.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002205/0.1421, allocations: 346.8 kB / 370.5 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004243/0.1425, allocations: 193 kB / 370.7 MB, free: 1.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000481/0.143, allocations: 248.6 kB / 371 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.1434, allocations: 190.1 kB / 371.1 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1434, allocations: 0 / 371.1 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001279/0.1447, allocations: 0.6212 MB / 371.8 MB, free: 92 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1447, allocations: 7.938 kB / 371.8 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1447, allocations: 0 / 371.8 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2358/0.3806, allocations: 294.4 kB / 372.1 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000425/0.381, allocations: 75.77 kB / 372.1 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004027/0.3851, allocations: 2.702 MB / 374.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.3855, allocations: 35.72 kB / 374.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.874e-05/0.3855, allocations: 20.28 kB / 374.9 MB, free: 18.32 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: 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.0002254/0.3858, allocations: 160.5 kB / 375 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.38e-05/0.3859, allocations: 34.36 kB / 375.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.386, allocations: 53.41 kB / 375.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.386, allocations: 8.828 kB / 375.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.386, allocations: 2.031 kB / 375.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.386, allocations: 2.859 kB / 375.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/0.3884, allocations: 1.305 MB / 376.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3884, allocations: 1.469 kB / 376.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/0.3887, allocations: 73.7 kB / 376.5 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006703/0.3894, allocations: 281.9 kB / 376.8 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.335e-05/0.3895, allocations: 20.89 kB / 376.8 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003106/0.3926, allocations: 2.606 MB / 379.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.3926, allocations: 1.344 kB / 379.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.3946, allocations: 0.9671 MB / 380.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002444/0.3949, allocations: 169.2 kB / 380.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.875e-05/0.395, allocations: 12.67 kB / 380.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.3953, allocations: 36.22 kB / 380.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/0.3955, allocations: 83.56 kB / 380.7 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-05/0.3956, allocations: 20.53 kB / 380.7 MB, free: 15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002861/0.3959, allocations: 198.1 kB / 380.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3959, allocations: 1.875 kB / 380.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008162/0.3967, allocations: 150.8 kB / 381 MB, free: 14.87 MB / 302.1 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.002967/0.3997, allocations: 1.809 MB / 382.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.4012, allocations: 0.7017 MB / 383.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4013, allocations: 0 / 383.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000908/0.4022, allocations: 489.8 kB / 384 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004805/0.4027, allocations: 47.31 kB / 384.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.407, allocations: 2.446 MB / 386.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.4074, allocations: 0.7954 MB / 387.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003217/0.4077, allocations: 81.17 kB / 387.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.4079, allocations: 103.4 kB / 387.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.408, allocations: 0 / 387.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02711/0.4351, allocations: 10.32 MB / 397.8 MB, free: 6.742 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002685/0.4354, allocations: 266.3 kB / 398.1 MB, free: 6.391 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.115/2.55, allocations: 3.938 kB / 398.1 MB, free: 6.387 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat