Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.002377/0.002376, allocations: 186.2 kB / 16.4 MB, free: 5.625 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.218/2.218, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001155/0.001155, allocations: 86.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004039/0.0004039, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1206, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003298/0.1239, allocations: 1.89 MB / 376.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.1262, allocations: 0.9224 MB / 377.4 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.1264, allocations: 0 / 377.4 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.1266, allocations: 31.77 kB / 377.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005935/0.1272, allocations: 131.6 kB / 377.6 MB, free: 12.35 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004739/0.1277, allocations: 135.8 kB / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004716/0.1282, allocations: 251.5 kB / 378 MB, free: 11.97 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.1284, allocations: 60.7 kB / 378 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.1286, allocations: 163.5 kB / 378.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.129, allocations: 187.3 kB / 378.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.55e-05/0.1291, allocations: 20 kB / 378.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000292/0.1294, allocations: 87.88 kB / 378.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.1295, allocations: 83.77 kB / 378.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1297, allocations: 73.52 kB / 378.6 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005211/0.1302, allocations: 311.5 kB / 378.9 MB, free: 11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1302, allocations: 0 / 378.9 MB, free: 11 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1302, allocations: 0 / 378.9 MB, free: 11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1302, allocations: 0 / 378.9 MB, free: 11 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001558/0.1318, allocations: 0.5847 MB / 379.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1319, allocations: 8.031 kB / 379.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001159/0.132, allocations: 70.53 kB / 379.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004259/0.1324, allocations: 51.61 kB / 379.7 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005942/0.133, allocations: 290.5 kB / 379.9 MB, free: 9.902 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/0.1332, allocations: 91.95 kB / 380 MB, free: 9.797 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.505e-05/0.1333, allocations: 28 kB / 380.1 MB, free: 9.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.1344, allocations: 369.2 kB / 380.4 MB, free: 9.391 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/0.1345, allocations: 15.89 kB / 380.4 MB, free: 9.375 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.421e-05/0.1346, allocations: 12 kB / 380.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.1346, allocations: 8 kB / 380.5 MB, free: 9.355 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.1361, allocations: 421.9 kB / 380.9 MB, free: 8.945 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003239/0.1393, allocations: 1.257 MB / 382.1 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.1405, allocations: 359 kB / 382.5 MB, free: 7.254 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.714e-05/0.1406, allocations: 12.14 kB / 382.5 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.1406, allocations: 30.56 kB / 382.5 MB, free: 7.203 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 2.756e-06/0.1406, allocations: 0 / 382.5 MB, free: 7.203 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008301/0.1489, allocations: 1.949 MB / 384.5 MB, free: 5.141 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.1491, allocations: 88.8 kB / 384.6 MB, free: 5.035 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004728/0.1496, allocations: 230.3 kB / 384.8 MB, free: 4.797 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.677e-05/0.1496, allocations: 41.7 kB / 384.8 MB, free: 4.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.1498, allocations: 199 kB / 385 MB, free: 4.555 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.15, allocations: 149.9 kB / 385.2 MB, free: 4.406 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.15, allocations: 8 kB / 385.2 MB, free: 4.398 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1502, allocations: 326.8 kB / 385.5 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006559/0.1509, allocations: 168.8 kB / 385.7 MB, free: 3.906 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007262/0.1516, allocations: 237.8 kB / 385.9 MB, free: 3.652 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006319/0.1523, allocations: 160.8 kB / 386 MB, free: 3.5 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1523, allocations: 4.031 kB / 386 MB, free: 3.496 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001996/0.1543, allocations: 0.5474 MB / 386.6 MB, free: 2.938 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.1544, allocations: 16.06 kB / 386.6 MB, free: 2.922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1544, allocations: 0 / 386.6 MB, free: 2.922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.1557, allocations: 250.2 kB / 386.9 MB, free: 2.672 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.1562, allocations: 51.89 kB / 386.9 MB, free: 2.621 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2566/0.4127, allocations: 2.698 MB / 389.6 MB, free: 19.65 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.4133, allocations: 33.28 kB / 389.6 MB, free: 19.65 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.715e-05/0.4134, allocations: 17.98 kB / 389.7 MB, free: 19.65 MB / 282.7 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.000252/0.4137, allocations: 151.9 kB / 389.8 MB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.769e-05/0.4138, allocations: 29.31 kB / 389.8 MB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.414, allocations: 43.41 kB / 389.9 MB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.414, allocations: 5.156 kB / 389.9 MB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.414, allocations: 0 / 389.9 MB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.414, allocations: 5.438 kB / 389.9 MB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.4172, allocations: 1.096 MB / 391 MB, free: 19.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.4172, allocations: 0 / 391 MB, free: 19.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004518/0.4177, allocations: 50.31 kB / 391 MB, free: 19.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.4188, allocations: 238.8 kB / 391.3 MB, free: 19.22 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.192e-05/0.4189, allocations: 10.08 kB / 391.3 MB, free: 19.22 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005467/0.4244, allocations: 2.662 MB / 393.9 MB, free: 17.6 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4244, allocations: 0 / 393.9 MB, free: 17.6 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002573/0.427, allocations: 0.8292 MB / 394.8 MB, free: 17.2 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.4273, allocations: 140.5 kB / 394.9 MB, free: 17.08 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.305e-05/0.4274, allocations: 15.84 kB / 394.9 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.4279, allocations: 30.39 kB / 394.9 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003036/0.4282, allocations: 68.95 kB / 395 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.065e-05/0.4283, allocations: 11.7 kB / 395 MB, free: 17.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003203/0.4286, allocations: 180.6 kB / 395.2 MB, free: 16.95 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4286, allocations: 3.906 kB / 395.2 MB, free: 16.95 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008948/0.4295, allocations: 138 kB / 395.3 MB, free: 16.94 MB / 282.7 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.003126/0.4326, allocations: 1.429 MB / 396.8 MB, free: 16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.4347, allocations: 0.6201 MB / 397.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4348, allocations: 0 / 397.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.436, allocations: 436 kB / 397.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005065/0.4365, allocations: 25.81 kB / 397.8 MB, free: 15.47 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006086/0.4426, allocations: 2.767 MB / 400.6 MB, free: 13.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.443, allocations: 0.7909 MB / 401.4 MB, free: 13.01 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000271/0.4433, allocations: 83.45 kB / 401.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of SimCode: time 1.203e-06/0.4433, allocations: 3.938 kB / 401.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.951/3.394, allocations: 6.124 MB / 407.6 MB, free: 11.12 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat