Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 91.52 kB / 16.31 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 183.8 kB / 17.21 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.3 MB / 241.2 MB, free: 5.312 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002662/0.0002663, allocations: 5.938 kB / 300.9 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1173, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002683/0.12, allocations: 1.958 MB / 353.3 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1216, allocations: 0.863 MB / 354.2 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1218, allocations: 3.938 kB / 354.2 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.122, allocations: 35.77 kB / 354.2 MB, free: 8.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004122/0.1224, allocations: 111.4 kB / 354.3 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.1227, allocations: 147.7 kB / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004231/0.1231, allocations: 366.8 kB / 354.8 MB, free: 8.082 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.1233, allocations: 52.53 kB / 354.9 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.1235, allocations: 159.5 kB / 355 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003/0.1238, allocations: 199.3 kB / 355.2 MB, free: 7.676 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.585e-05/0.1239, allocations: 16 kB / 355.2 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.1241, allocations: 79.94 kB / 355.3 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.1242, allocations: 83.72 kB / 355.4 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.711e-05/0.1243, allocations: 73.58 kB / 355.5 MB, free: 7.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004017/0.1247, allocations: 315.2 kB / 355.8 MB, free: 7.113 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1248, allocations: 0 / 355.8 MB, free: 7.113 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1248, allocations: 0 / 355.8 MB, free: 7.113 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1248, allocations: 4 kB / 355.8 MB, free: 7.109 MB / 286.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.001114/0.1259, allocations: 0.5769 MB / 356.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.126, allocations: 16.03 kB / 356.4 MB, free: 6.469 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.71e-05/0.1261, allocations: 66.5 kB / 356.4 MB, free: 6.395 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002785/0.1263, allocations: 51.59 kB / 356.5 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004601/0.1268, allocations: 294.5 kB / 356.8 MB, free: 6.016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.127, allocations: 91.95 kB / 356.8 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.039e-05/0.127, allocations: 27.91 kB / 356.9 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007348/0.1278, allocations: 381.3 kB / 357.2 MB, free: 5.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1278, allocations: 7.938 kB / 357.3 MB, free: 5.492 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.1279, allocations: 11.95 kB / 357.3 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1279, allocations: 8 kB / 357.3 MB, free: 5.473 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008993/0.1288, allocations: 425.9 kB / 357.7 MB, free: 5.055 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.1309, allocations: 1.253 MB / 358.9 MB, free: 3.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006678/0.1315, allocations: 363.8 kB / 359.3 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003704/0.1319, allocations: 188.8 kB / 359.5 MB, free: 3.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.132, allocations: 4 kB / 359.5 MB, free: 3.176 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.132, allocations: 46.5 kB / 359.5 MB, free: 3.121 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.543e-06/0.132, allocations: 0 / 359.5 MB, free: 3.121 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004409/0.1364, allocations: 1.942 MB / 361.5 MB, free: 1.062 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.1365, allocations: 84.86 kB / 361.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.1368, allocations: 238.3 kB / 361.8 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.1368, allocations: 33.7 kB / 361.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.636e-05/0.1369, allocations: 140.6 kB / 362 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.1371, allocations: 146 kB / 362.1 MB, free: 400 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/0.1371, allocations: 19.94 kB / 362.1 MB, free: 380 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1372, allocations: 334.8 kB / 362.4 MB, free: 36 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.1376, allocations: 176.8 kB / 362.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003894/0.138, allocations: 229.9 kB / 362.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003301/0.1383, allocations: 164.7 kB / 363 MB, free: 15.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1383, allocations: 0 / 363 MB, free: 15.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001032/0.1394, allocations: 0.5513 MB / 363.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1394, allocations: 10.12 kB / 363.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.1394, allocations: 4 kB / 363.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006778/0.1401, allocations: 256.7 kB / 363.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.1403, allocations: 47.97 kB / 363.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003625/0.144, allocations: 2.652 MB / 366.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.1442, allocations: 31.97 kB / 366.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/0.1443, allocations: 20.06 kB / 366.6 MB, free: 11.75 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.0001815/0.1445, allocations: 158.2 kB / 366.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.043e-05/0.1445, allocations: 27.67 kB / 366.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.208e-05/0.1446, allocations: 42.98 kB / 366.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.1446, allocations: 4 kB / 366.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1447, allocations: 4 kB / 366.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1447, allocations: 0 / 366.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.1464, allocations: 1.101 MB / 367.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1464, allocations: 0 / 367.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.1467, allocations: 43.97 kB / 367.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006284/0.1473, allocations: 244.6 kB / 368.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.357e-05/0.1473, allocations: 15.98 kB / 368.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003479/0.1508, allocations: 2.602 MB / 370.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1508, allocations: 0 / 370.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.1523, allocations: 0.8292 MB / 371.6 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.1525, allocations: 140.7 kB / 371.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.742e-05/0.1525, allocations: 8 kB / 371.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003225/0.1529, allocations: 39.97 kB / 371.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.153, allocations: 67.83 kB / 371.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.1531, allocations: 19.98 kB / 371.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.1533, allocations: 176.3 kB / 372.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1533, allocations: 0 / 372.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006217/0.1539, allocations: 140 kB / 372.2 MB, free: 5.859 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.001975/0.1559, allocations: 1.429 MB / 373.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.1572, allocations: 0.633 MB / 374.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1573, allocations: 0 / 374.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000731/0.158, allocations: 429.5 kB / 374.7 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.1584, allocations: 40.05 kB / 374.7 MB, free: 3.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/0.1622, allocations: 2.144 MB / 376.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.1626, allocations: 0.7803 MB / 377.7 MB, free: 284 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.1628, allocations: 58.95 kB / 377.7 MB, free: 224 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.163, allocations: 79.41 kB / 377.8 MB, free: 144 kB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.163, allocations: 0 / 377.8 MB, free: 144 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.1854, allocations: 8.853 MB / 386.6 MB, free: 7.484 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.1857, allocations: 221 kB / 386.9 MB, free: 7.246 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.124/2.31, allocations: 3.938 kB / 386.9 MB, free: 7.242 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat