Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.001329/0.001328, allocations: 98.05 kB / 16.3 MB, free: 5.992 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.001511/0.001511, allocations: 181.8 kB / 17.19 MB, free: 5.906 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.343/1.343, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002858, allocations: 9.031 kB / 300.8 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1157, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002416/0.1182, allocations: 1.946 MB / 353.2 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.1198, allocations: 0.9254 MB / 354.1 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.1199, allocations: 7.938 kB / 354.1 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.1201, allocations: 35.75 kB / 354.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004729/0.1206, allocations: 143.6 kB / 354.3 MB, free: 8.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002822/0.1209, allocations: 143.7 kB / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.1212, allocations: 295.4 kB / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.1214, allocations: 80.91 kB / 354.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002536/0.1217, allocations: 183.5 kB / 355 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002716/0.122, allocations: 207.3 kB / 355.2 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.359e-05/0.122, allocations: 20 kB / 355.2 MB, free: 7.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.1222, allocations: 87.88 kB / 355.3 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.1223, allocations: 91.7 kB / 355.4 MB, free: 7.492 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.875e-05/0.1224, allocations: 77.58 kB / 355.4 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.1227, allocations: 351.1 kB / 355.8 MB, free: 7.066 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1228, allocations: 0 / 355.8 MB, free: 7.066 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1228, allocations: 0 / 355.8 MB, free: 7.066 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1228, allocations: 0 / 355.8 MB, free: 7.066 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001108/0.1239, allocations: 0.6236 MB / 356.4 MB, free: 6.395 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1239, allocations: 8.031 kB / 356.4 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.478e-05/0.124, allocations: 74.53 kB / 356.5 MB, free: 6.305 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002846/0.1243, allocations: 55.56 kB / 356.5 MB, free: 6.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.1248, allocations: 314.2 kB / 356.8 MB, free: 5.902 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.1249, allocations: 88.05 kB / 356.9 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.95e-05/0.125, allocations: 32 kB / 357 MB, free: 5.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007564/0.1258, allocations: 412.9 kB / 357.4 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.1258, allocations: 4 kB / 357.4 MB, free: 5.355 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.155e-05/0.1258, allocations: 12 kB / 357.4 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.1258, allocations: 11.95 kB / 357.4 MB, free: 5.332 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009896/0.1268, allocations: 494.2 kB / 357.9 MB, free: 4.844 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.1285, allocations: 0.9775 MB / 358.9 MB, free: 3.809 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007606/0.1292, allocations: 412.4 kB / 359.3 MB, free: 3.398 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.1293, allocations: 8.438 kB / 359.3 MB, free: 3.391 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.1293, allocations: 39 kB / 359.3 MB, free: 3.344 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.875e-06/0.1293, allocations: 3.984 kB / 359.3 MB, free: 3.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005027/0.1344, allocations: 2.203 MB / 361.5 MB, free: 1.027 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.1344, allocations: 89.66 kB / 361.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.1347, allocations: 263 kB / 361.9 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.1348, allocations: 33.7 kB / 361.9 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.49e-05/0.1349, allocations: 129.2 kB / 362 MB, free: 500 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.135, allocations: 189.3 kB / 362.2 MB, free: 308 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.678e-05/0.135, allocations: 16 kB / 362.2 MB, free: 292 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1352, allocations: 338.8 kB / 362.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004168/0.1356, allocations: 201 kB / 362.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004648/0.1361, allocations: 252.6 kB / 363 MB, free: 15.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003969/0.1365, allocations: 190.1 kB / 363.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1365, allocations: 0 / 363.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001172/0.1377, allocations: 0.6252 MB / 363.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.1377, allocations: 4 kB / 363.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.1377, allocations: 0 / 363.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007078/0.1384, allocations: 262.8 kB / 364.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.1388, allocations: 71.89 kB / 364.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003518/0.1423, allocations: 2.752 MB / 366.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/0.1426, allocations: 40.06 kB / 366.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.1427, allocations: 19.98 kB / 366.9 MB, free: 11.4 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.0002172/0.1429, allocations: 153.8 kB / 367.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.143, allocations: 39.52 kB / 367.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.987e-05/0.1431, allocations: 55.3 kB / 367.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.1431, allocations: 4 kB / 367.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.1431, allocations: 0 / 367.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1431, allocations: 7.984 kB / 367.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002045/0.1452, allocations: 1.28 MB / 368.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1452, allocations: 0 / 368.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/0.1455, allocations: 67.95 kB / 368.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006182/0.1461, allocations: 244.7 kB / 368.8 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.1462, allocations: 23.92 kB / 368.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00333/0.1495, allocations: 2.652 MB / 371.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1495, allocations: 0 / 371.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.1512, allocations: 0.9902 MB / 372.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.1514, allocations: 148.7 kB / 372.6 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.196e-05/0.1515, allocations: 16 kB / 372.6 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002954/0.1518, allocations: 31.97 kB / 372.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.152, allocations: 76.3 kB / 372.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.586e-05/0.152, allocations: 19.98 kB / 372.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.1522, allocations: 196.7 kB / 372.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1522, allocations: 3.938 kB / 372.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000608/0.1528, allocations: 156 kB / 373.1 MB, free: 5.012 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.002215/0.1551, allocations: 1.654 MB / 374.7 MB, free: 3.312 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.1565, allocations: 0.7073 MB / 375.4 MB, free: 2.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1565, allocations: 0 / 375.4 MB, free: 2.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007882/0.1573, allocations: 483.8 kB / 375.9 MB, free: 2.105 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.1577, allocations: 32.36 kB / 375.9 MB, free: 2.074 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004131/0.1618, allocations: 2.608 MB / 378.6 MB, free: 15.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.1622, allocations: 0.8009 MB / 379.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002147/0.1625, allocations: 66.94 kB / 379.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.1626, allocations: 95.39 kB / 379.5 MB, free: 14.41 MB / 318.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1626, allocations: 0 / 379.5 MB, free: 14.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.1859, allocations: 9.782 MB / 389.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/0.1862, allocations: 215.7 kB / 389.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.263, allocations: 0 / 389.5 MB, free: 4.59 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat