Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_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.0008319/0.0008319, allocations: 94.14 kB / 16.95 MB, free: 6.113 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.0009504/0.0009505, allocations: 175.3 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.4 MB / 224 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005447/0.0005448, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09235/0.09291, allocations: 47.59 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002935/0.09589, allocations: 2.023 MB / 330.5 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.09768, allocations: 0.9651 MB / 331.4 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.09787, allocations: 4 kB / 331.4 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.09809, allocations: 35.7 kB / 331.5 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004855/0.09858, allocations: 127.3 kB / 331.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003259/0.09892, allocations: 143.8 kB / 331.7 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004445/0.09937, allocations: 418.5 kB / 332.2 MB, free: 256 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.09956, allocations: 72.91 kB / 332.2 MB, free: 180 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.09983, allocations: 179.4 kB / 332.4 MB, free: 0 / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003003/0.1001, allocations: 219.2 kB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.948e-05/0.1002, allocations: 20 kB / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001917/0.1004, allocations: 91.86 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.1005, allocations: 91.66 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.073e-05/0.1006, allocations: 77.58 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004013/0.101, allocations: 355.3 kB / 333.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.1011, allocations: 3.938 kB / 333.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1011, allocations: 4 kB / 333.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1011, allocations: 0 / 333.2 MB, free: 15.15 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.001168/0.1022, allocations: 0.6158 MB / 333.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.1023, allocations: 8.031 kB / 333.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.1024, allocations: 70.53 kB / 333.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002748/0.1027, allocations: 51.59 kB / 334 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.1032, allocations: 314.3 kB / 334.3 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.1033, allocations: 92.05 kB / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.1034, allocations: 28 kB / 334.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.1044, allocations: 412.9 kB / 334.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1044, allocations: 4 kB / 334.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.639e-05/0.1045, allocations: 12 kB / 334.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.1045, allocations: 8 kB / 334.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.1056, allocations: 490.2 kB / 335.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.1074, allocations: 0.993 MB / 336.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008176/0.1083, allocations: 412.5 kB / 336.7 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004639/0.1087, allocations: 238.1 kB / 336.9 MB, free: 11.26 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.178e-05/0.1088, allocations: 8.438 kB / 337 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.1088, allocations: 35.19 kB / 337 MB, free: 11.21 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 4.428e-06/0.1088, allocations: 0 / 337 MB, free: 11.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.004895/0.1137, allocations: 2.222 MB / 339.2 MB, free: 8.871 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.1138, allocations: 85.67 kB / 339.3 MB, free: 8.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.1141, allocations: 259 kB / 339.5 MB, free: 8.508 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.057e-05/0.1142, allocations: 41.69 kB / 339.6 MB, free: 8.461 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.27e-05/0.1143, allocations: 133.1 kB / 339.7 MB, free: 8.324 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.1144, allocations: 189.3 kB / 339.9 MB, free: 8.137 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.1145, allocations: 8 kB / 339.9 MB, free: 8.129 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1146, allocations: 342.8 kB / 340.2 MB, free: 7.785 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004095/0.115, allocations: 205 kB / 340.4 MB, free: 7.586 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004491/0.1155, allocations: 248.6 kB / 340.7 MB, free: 7.332 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003834/0.1159, allocations: 190.1 kB / 340.9 MB, free: 7.148 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1159, allocations: 0 / 340.9 MB, free: 7.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001183/0.1171, allocations: 0.633 MB / 341.5 MB, free: 6.508 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1171, allocations: 4 kB / 341.5 MB, free: 6.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1171, allocations: 0 / 341.5 MB, free: 6.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006889/0.1178, allocations: 250.1 kB / 341.8 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.1181, allocations: 79.88 kB / 341.8 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003598/0.1217, allocations: 2.702 MB / 344.5 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.122, allocations: 36 kB / 344.6 MB, free: 3.309 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.1221, allocations: 16.06 kB / 344.6 MB, free: 3.293 MB / 286.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.0002043/0.1223, allocations: 169.7 kB / 344.8 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.775e-05/0.1224, allocations: 31.62 kB / 344.8 MB, free: 3.086 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001236/0.1225, allocations: 59.33 kB / 344.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.1225, allocations: 7.938 kB / 344.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.1225, allocations: 0 / 344.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1226, allocations: 0 / 344.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.1246, allocations: 1.276 MB / 346.1 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1247, allocations: 3.938 kB / 346.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002944/0.125, allocations: 67.94 kB / 346.2 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005878/0.1255, allocations: 240.6 kB / 346.4 MB, free: 1.371 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/0.1256, allocations: 16 kB / 346.4 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003284/0.1289, allocations: 2.608 MB / 349.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1289, allocations: 0 / 349.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.1306, allocations: 0.9728 MB / 350 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.1308, allocations: 152.7 kB / 350.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.38e-05/0.1309, allocations: 16 kB / 350.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.1312, allocations: 40.03 kB / 350.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.1313, allocations: 72.3 kB / 350.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.1314, allocations: 19.98 kB / 350.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002296/0.1316, allocations: 196.6 kB / 350.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1316, allocations: 0 / 350.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006294/0.1323, allocations: 156 kB / 350.7 MB, free: 12.96 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.002285/0.1346, allocations: 1.576 MB / 352.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.136, allocations: 0.7151 MB / 353 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.136, allocations: 0 / 353 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000806/0.1368, allocations: 479.8 kB / 353.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/0.1373, allocations: 36.44 kB / 353.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004477/0.1417, allocations: 2.461 MB / 355.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.1422, allocations: 0.7931 MB / 356.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002333/0.1425, allocations: 66.92 kB / 356.8 MB, free: 6.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.1427, allocations: 99.39 kB / 356.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1427, allocations: 0 / 356.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09072/0.2334, allocations: 9.803 MB / 366.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002339/0.2337, allocations: 220.3 kB / 366.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.237/2.47, allocations: 0 / 366.9 MB, free: 12.56 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat