Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.001462/0.001461, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 96.83 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3009/0.3009, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.834e-05/2.862e-05, allocations: 0 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4248, allocations: 58.85 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1617/0.5865, allocations: 85.64 MB / 0.5496 GB, free: 13.55 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000371/0.587, allocations: 71.47 kB / 0.5497 GB, free: 13.49 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01429/0.6013, allocations: 2.464 MB / 0.5521 GB, free: 11.02 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.6014, allocations: 0 / 0.5521 GB, free: 11.02 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.212e-05/0.6014, allocations: 8 kB / 0.5521 GB, free: 11.01 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001004/0.6024, allocations: 402.8 kB / 0.5525 GB, free: 10.57 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.495e-05/0.6025, allocations: 12.03 kB / 0.5525 GB, free: 10.56 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.383e-05/0.6026, allocations: 15.81 kB / 0.5525 GB, free: 10.54 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.6031, allocations: 204.1 kB / 0.5527 GB, free: 10.3 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.6031, allocations: 4 kB / 0.5527 GB, free: 10.3 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/0.6032, allocations: 12 kB / 0.5527 GB, free: 10.29 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003498/0.6036, allocations: 67.98 kB / 0.5528 GB, free: 10.22 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003966/0.604, allocations: 105.6 kB / 0.5529 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.604, allocations: 4 kB / 0.5529 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.6041, allocations: 0 / 0.5529 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.6041, allocations: 4 kB / 0.5529 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.6054, allocations: 428.8 kB / 0.5533 GB, free: 9.648 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003886/0.6058, allocations: 110.4 kB / 0.5534 GB, free: 9.531 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.606, allocations: 44.86 kB / 0.5535 GB, free: 9.484 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.6061, allocations: 0 / 0.5535 GB, free: 9.484 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.6061, allocations: 34.56 kB / 0.5535 GB, free: 9.441 MB / 395.1 MB Notification: Performance of pre-optimization done (n=13): time 2.835e-06/0.6062, allocations: 4 kB / 0.5535 GB, free: 9.438 MB / 395.1 MB Notification: Performance of matching and sorting (n=19): time 0.002512/0.6087, allocations: 0.7015 MB / 0.5542 GB, free: 8.645 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.342e-05/0.6088, allocations: 51.41 kB / 0.5542 GB, free: 8.582 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.609, allocations: 113.2 kB / 0.5543 GB, free: 8.465 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.6091, allocations: 33.7 kB / 0.5544 GB, free: 8.426 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.6092, allocations: 178.8 kB / 0.5545 GB, free: 8.246 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.6093, allocations: 67 kB / 0.5546 GB, free: 8.18 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.6094, allocations: 3.281 kB / 0.5546 GB, free: 8.18 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.6096, allocations: 318.8 kB / 0.5549 GB, free: 7.859 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.6098, allocations: 32.38 kB / 0.5549 GB, free: 7.824 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.61, allocations: 71.92 kB / 0.555 GB, free: 7.742 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.6102, allocations: 43.98 kB / 0.5551 GB, free: 7.699 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.6102, allocations: 0 / 0.5551 GB, free: 7.699 MB / 395.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007871/0.6111, allocations: 174.2 kB / 0.5552 GB, free: 7.52 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.6111, allocations: 8 kB / 0.5552 GB, free: 7.512 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.6111, allocations: 0 / 0.5552 GB, free: 7.512 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003031/0.6114, allocations: 40.78 kB / 0.5553 GB, free: 7.469 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003892/0.6119, allocations: 31.98 kB / 0.5553 GB, free: 7.438 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002755/0.6146, allocations: 1.498 MB / 0.5568 GB, free: 5.828 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.6149, allocations: 12.08 kB / 0.5568 GB, free: 5.816 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.615, allocations: 4 kB / 0.5568 GB, free: 5.812 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.6151, allocations: 101 kB / 0.5569 GB, free: 5.707 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006782/0.6158, allocations: 166.2 kB / 0.557 GB, free: 5.535 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.966e-05/0.6159, allocations: 7.906 kB / 0.557 GB, free: 5.527 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.125e-05/0.616, allocations: 16.75 kB / 0.5571 GB, free: 5.512 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.6161, allocations: 7.938 kB / 0.5571 GB, free: 5.504 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.6161, allocations: 4 kB / 0.5571 GB, free: 5.5 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.6161, allocations: 3.984 kB / 0.5571 GB, free: 5.496 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.6177, allocations: 491.6 kB / 0.5575 GB, free: 4.969 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.6178, allocations: 8.031 kB / 0.5575 GB, free: 4.961 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/0.6182, allocations: 43.91 kB / 0.5576 GB, free: 4.918 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002261/0.6185, allocations: 28.78 kB / 0.5576 GB, free: 4.887 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.181e-05/0.6185, allocations: 7.953 kB / 0.5576 GB, free: 4.879 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002036/0.6206, allocations: 1.303 MB / 0.5589 GB, free: 3.457 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/0.6206, allocations: 4.031 kB / 0.5589 GB, free: 3.453 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008406/0.6215, allocations: 319.2 kB / 0.5592 GB, free: 3.113 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.842e-05/0.6216, allocations: 93.02 kB / 0.5593 GB, free: 3.004 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.479e-05/0.6217, allocations: 4 kB / 0.5593 GB, free: 3 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.622, allocations: 7.938 kB / 0.5593 GB, free: 2.992 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.609e-05/0.6221, allocations: 11.98 kB / 0.5593 GB, free: 2.98 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/0.6221, allocations: 4 kB / 0.5593 GB, free: 2.977 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001245/0.6223, allocations: 99.27 kB / 0.5594 GB, free: 2.879 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6223, allocations: 0 / 0.5594 GB, free: 2.879 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00097/0.6233, allocations: 35.94 kB / 0.5594 GB, free: 2.844 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/0.6248, allocations: 0.9207 MB / 0.5603 GB, free: 1.891 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0008739/0.6258, allocations: 241.5 kB / 0.5606 GB, free: 1.645 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.6258, allocations: 0 / 0.5606 GB, free: 1.645 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005163/0.6263, allocations: 173.7 kB / 0.5607 GB, free: 1.465 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005179/0.6269, allocations: 15.95 kB / 0.5608 GB, free: 1.449 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.6286, allocations: 386.4 kB / 0.5611 GB, free: 1.023 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000443/0.6291, allocations: 0.732 MB / 0.5618 GB, free: 272 kB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.6293, allocations: 43.42 kB / 0.5619 GB, free: 228 kB / 395.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6293, allocations: 0 / 0.5619 GB, free: 228 kB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.808/3.437, allocations: 2.938 MB / 0.5648 GB, free: 13.28 MB / 411.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat