Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001183/0.001183, allocations: 99.11 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.001836/0.001837, allocations: 191.1 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.391/1.391, allocations: 227.3 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002779/0.0002779, allocations: 11.98 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1193, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002715/0.122, allocations: 2.058 MB / 360.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1236, allocations: 0.9916 MB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.1237, allocations: 4 kB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002582/0.124, allocations: 55.69 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003231/0.1243, allocations: 126.6 kB / 361.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003051/0.1246, allocations: 131.8 kB / 361.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.125, allocations: 406.7 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.1252, allocations: 56.69 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.1254, allocations: 179.4 kB / 362.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002689/0.1257, allocations: 227.3 kB / 362.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.165e-05/0.1257, allocations: 20 kB / 362.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.1259, allocations: 87.97 kB / 362.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.126, allocations: 87.69 kB / 362.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.707e-05/0.1261, allocations: 77.58 kB / 362.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003595/0.1265, allocations: 355.4 kB / 363.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1265, allocations: 0 / 363.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1265, allocations: 4 kB / 363.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1265, allocations: 0 / 363.1 MB, free: 9.109 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00102/0.1275, allocations: 0.6042 MB / 363.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1276, allocations: 8.031 kB / 363.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.39e-05/0.1277, allocations: 66.53 kB / 363.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002816/0.128, allocations: 47.55 kB / 363.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004091/0.1284, allocations: 304.1 kB / 364.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.1285, allocations: 87.91 kB / 364.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.937e-05/0.1286, allocations: 32 kB / 364.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006815/0.1293, allocations: 385.2 kB / 364.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.1293, allocations: 4 kB / 364.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.1293, allocations: 8 kB / 364.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1294, allocations: 8 kB / 364.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008002/0.1302, allocations: 429.9 kB / 365.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.1322, allocations: 1.273 MB / 366.4 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006873/0.1329, allocations: 350.1 kB / 366.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003627/0.1333, allocations: 184.8 kB / 366.9 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.1333, allocations: 12.08 kB / 366.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.77e-05/0.1334, allocations: 42.56 kB / 366.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.094e-06/0.1334, allocations: 3.938 kB / 366.9 MB, free: 5.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004498/0.1379, allocations: 1.941 MB / 368.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.1379, allocations: 88.8 kB / 369 MB, free: 2.918 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.1382, allocations: 243.7 kB / 369.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/0.1383, allocations: 37.7 kB / 369.2 MB, free: 2.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.439e-05/0.1384, allocations: 136.6 kB / 369.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.1385, allocations: 157.9 kB / 369.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/0.1386, allocations: 4 kB / 369.5 MB, free: 2.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1387, allocations: 338.8 kB / 369.9 MB, free: 1.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003476/0.139, allocations: 164.8 kB / 370 MB, free: 1.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.1394, allocations: 229.9 kB / 370.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003386/0.1398, allocations: 160.7 kB / 370.4 MB, free: 1.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1398, allocations: 0 / 370.4 MB, free: 1.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001065/0.1409, allocations: 0.5512 MB / 371 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1409, allocations: 8 kB / 371 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1409, allocations: 0 / 371 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007521/0.1417, allocations: 297.8 kB / 371.3 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.1419, allocations: 55.95 kB / 371.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2017/0.3437, allocations: 2.652 MB / 374 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/0.3441, allocations: 31.12 kB / 374 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.552e-05/0.3441, allocations: 22.03 kB / 374 MB, free: 18.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002189/0.3444, allocations: 154.5 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.834e-05/0.3444, allocations: 25.56 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.3446, allocations: 42.86 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3446, allocations: 4.312 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3446, allocations: 1.578 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3446, allocations: 2.25 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.3467, allocations: 1.12 MB / 375.4 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3467, allocations: 3.828 kB / 375.4 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/0.3469, allocations: 54.69 kB / 375.4 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007957/0.3478, allocations: 278.9 kB / 375.7 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-05/0.3478, allocations: 15.8 kB / 375.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003159/0.351, allocations: 2.607 MB / 378.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.351, allocations: 0 / 378.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.3525, allocations: 0.8239 MB / 379.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.3526, allocations: 152.9 kB / 379.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.458e-05/0.3527, allocations: 10.94 kB / 379.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.3529, allocations: 30.31 kB / 379.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.3531, allocations: 73.52 kB / 379.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.093e-05/0.3532, allocations: 17.89 kB / 379.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002109/0.3534, allocations: 186.1 kB / 379.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3534, allocations: 0 / 379.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006764/0.3541, allocations: 140.3 kB / 379.7 MB, free: 15.28 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.002481/0.3566, allocations: 1.668 MB / 381.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.3579, allocations: 0.6275 MB / 382 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.358, allocations: 0 / 382 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007078/0.3587, allocations: 432 kB / 382.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/0.3591, allocations: 43.06 kB / 382.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.3627, allocations: 2.113 MB / 384.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.363, allocations: 0.7748 MB / 385.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002816/0.3633, allocations: 76.12 kB / 385.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.3635, allocations: 90.02 kB / 385.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3635, allocations: 0 / 385.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.3875, allocations: 9.383 MB / 394.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.3877, allocations: 266.1 kB / 395.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.076/2.464, allocations: 0 / 395.2 MB, free: 8.039 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat