Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_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.001387/0.001387, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.812/1.812, allocations: 205.3 MB / 213.7 MB, free: 1.723 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001275/0.001275, allocations: 90.2 kB / 261.7 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2246/0.2246, allocations: 43.5 MB / 353.2 MB, free: 268 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.454e-05/1.446e-05, allocations: 0 / 418.4 MB, free: 28.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1256, allocations: 58.86 MB / 477.2 MB, free: 1.531 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3787/0.5043, allocations: 85.63 MB / 0.5496 GB, free: 8.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001478/0.5045, allocations: 72.69 kB / 0.5497 GB, free: 8.621 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005536/0.51, allocations: 2.477 MB / 0.5521 GB, free: 6.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5101, allocations: 0 / 0.5521 GB, free: 6.656 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.5101, allocations: 4 kB / 0.5521 GB, free: 6.652 MB / 362.7 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.0003471/0.5104, allocations: 406.1 kB / 0.5525 GB, free: 6.219 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.5105, allocations: 12.03 kB / 0.5525 GB, free: 6.207 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.728e-05/0.5105, allocations: 11.81 kB / 0.5526 GB, free: 6.195 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.5107, allocations: 209.3 kB / 0.5528 GB, free: 5.965 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.5107, allocations: 4 kB / 0.5528 GB, free: 5.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.5108, allocations: 8 kB / 0.5528 GB, free: 5.953 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001397/0.5109, allocations: 57.44 kB / 0.5528 GB, free: 5.918 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.5111, allocations: 102.3 kB / 0.5529 GB, free: 5.832 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.5111, allocations: 7.938 kB / 0.5529 GB, free: 5.824 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.5111, allocations: 0 / 0.5529 GB, free: 5.824 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.5111, allocations: 4 kB / 0.5529 GB, free: 5.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004656/0.5116, allocations: 429.4 kB / 0.5533 GB, free: 5.426 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.5117, allocations: 99.81 kB / 0.5534 GB, free: 5.348 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.11e-05/0.5118, allocations: 63.14 kB / 0.5535 GB, free: 5.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.5118, allocations: 0 / 0.5535 GB, free: 5.301 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.163e-05/0.5118, allocations: 34.56 kB / 0.5535 GB, free: 5.258 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 9.22e-07/0.5118, allocations: 0 / 0.5535 GB, free: 5.258 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.00086/0.5127, allocations: 0.6978 MB / 0.5542 GB, free: 4.547 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.689e-05/0.5127, allocations: 51.41 kB / 0.5543 GB, free: 4.484 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.158e-05/0.5128, allocations: 114.5 kB / 0.5544 GB, free: 4.375 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.5128, allocations: 25.7 kB / 0.5544 GB, free: 4.344 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.5129, allocations: 111.4 kB / 0.5545 GB, free: 4.234 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.5129, allocations: 66.33 kB / 0.5546 GB, free: 4.176 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.5129, allocations: 3.281 kB / 0.5546 GB, free: 4.176 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.342e-05/0.513, allocations: 325.6 kB / 0.5549 GB, free: 3.855 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.983e-05/0.513, allocations: 34.44 kB / 0.5549 GB, free: 3.832 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.136e-05/0.5131, allocations: 65.8 kB / 0.555 GB, free: 3.773 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.241e-05/0.5131, allocations: 44.23 kB / 0.555 GB, free: 3.746 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.5132, allocations: 4 kB / 0.555 GB, free: 3.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002597/0.5134, allocations: 177.2 kB / 0.5552 GB, free: 3.594 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.5134, allocations: 4 kB / 0.5552 GB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.5135, allocations: 4 kB / 0.5552 GB, free: 3.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000134/0.5136, allocations: 38.03 kB / 0.5552 GB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.5138, allocations: 39.91 kB / 0.5553 GB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008236/0.5146, allocations: 1.496 MB / 0.5567 GB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.571e-05/0.5147, allocations: 4 kB / 0.5567 GB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.5147, allocations: 11.69 kB / 0.5567 GB, free: 2.023 MB / 362.7 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 5.29e-05/0.5147, allocations: 101 kB / 0.5568 GB, free: 1.918 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002159/0.515, allocations: 164.1 kB / 0.557 GB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.515, allocations: 7.906 kB / 0.557 GB, free: 1.773 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.515, allocations: 16 kB / 0.557 GB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.515, allocations: 0 / 0.557 GB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.5151, allocations: 0 / 0.557 GB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.5151, allocations: 12.03 kB / 0.557 GB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004687/0.5155, allocations: 496.3 kB / 0.5575 GB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.5156, allocations: 0 / 0.5575 GB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.5157, allocations: 43.28 kB / 0.5575 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.88e-05/0.5158, allocations: 32.69 kB / 0.5576 GB, free: 1.227 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.5158, allocations: 3.953 kB / 0.5576 GB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006382/0.5165, allocations: 1.314 MB / 0.5589 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5165, allocations: 0 / 0.5589 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003656/0.5168, allocations: 332.6 kB / 0.5592 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/0.5169, allocations: 81.02 kB / 0.5593 GB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.5169, allocations: 4.125 kB / 0.5593 GB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.517, allocations: 4 kB / 0.5593 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.5171, allocations: 23.22 kB / 0.5593 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.5171, allocations: 4 kB / 0.5593 GB, free: 15.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.24e-05/0.5171, allocations: 89.97 kB / 0.5594 GB, free: 15.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5171, allocations: 4 kB / 0.5594 GB, free: 15.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003162/0.5175, allocations: 35.94 kB / 0.5594 GB, free: 15.32 MB / 378.7 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.0006253/0.5181, allocations: 0.9279 MB / 0.5603 GB, free: 14.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003452/0.5184, allocations: 231.8 kB / 0.5605 GB, free: 14.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.5185, allocations: 4.125 kB / 0.5605 GB, free: 14.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.5187, allocations: 175.7 kB / 0.5607 GB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002429/0.5189, allocations: 15.44 kB / 0.5607 GB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000703/0.5196, allocations: 356 kB / 0.5611 GB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.5199, allocations: 0.7282 MB / 0.5618 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.957e-05/0.52, allocations: 17.19 kB / 0.5618 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.343e-05/0.5201, allocations: 43.67 kB / 0.5618 GB, free: 12.89 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5201, allocations: 0 / 0.5618 GB, free: 12.89 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.5442, allocations: 2.471 MB / 0.5642 GB, free: 10.42 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/0.5445, allocations: 152.5 kB / 0.5644 GB, free: 10.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.453/1.997, allocations: 0 / 0.5644 GB, free: 10.23 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat