Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",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.001173/0.001173, allocations: 93.8 kB / 16.3 MB, free: 5.988 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.001455/0.001455, allocations: 182.9 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.409/1.409, allocations: 223.2 MB / 241.1 MB, free: 5.258 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002667, allocations: 5.469 kB / 300.8 MB, free: 5.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.09914, allocations: 50.42 MB / 351.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002271/0.1015, allocations: 1.904 MB / 353.1 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1026, allocations: 0.7409 MB / 353.9 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.1027, allocations: 7.938 kB / 353.9 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.1029, allocations: 35.77 kB / 353.9 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.1031, allocations: 59.81 kB / 354 MB, free: 8.598 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.1035, allocations: 123.7 kB / 354.1 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002574/0.1037, allocations: 224 kB / 354.3 MB, free: 8.258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.1039, allocations: 78.61 kB / 354.4 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.1041, allocations: 135.5 kB / 354.5 MB, free: 8.051 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.1043, allocations: 147.3 kB / 354.7 MB, free: 7.906 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/0.1044, allocations: 16 kB / 354.7 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.491e-05/0.1044, allocations: 16 kB / 354.7 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.623e-05/0.1045, allocations: 71.78 kB / 354.8 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.388e-05/0.1046, allocations: 69.58 kB / 354.8 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002033/0.1048, allocations: 223.4 kB / 355 MB, free: 7.512 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.1048, allocations: 0 / 355 MB, free: 7.512 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1048, allocations: 0 / 355 MB, free: 7.512 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1048, allocations: 0 / 355 MB, free: 7.512 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001028/0.1058, allocations: 0.581 MB / 355.6 MB, free: 6.883 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1059, allocations: 12.03 kB / 355.6 MB, free: 6.871 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.167e-05/0.106, allocations: 66.53 kB / 355.7 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.326e-05/0.106, allocations: 39.58 kB / 355.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.1064, allocations: 263.1 kB / 356 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.1066, allocations: 141.6 kB / 356.1 MB, free: 6.305 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.101e-05/0.1066, allocations: 28 kB / 356.2 MB, free: 6.277 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.1078, allocations: 0.5638 MB / 356.7 MB, free: 5.691 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1078, allocations: 7.938 kB / 356.7 MB, free: 5.684 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.1078, allocations: 8 kB / 356.7 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.1078, allocations: 11.94 kB / 356.8 MB, free: 5.664 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.1092, allocations: 0.5386 MB / 357.3 MB, free: 5.125 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.1108, allocations: 1.01 MB / 358.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.1123, allocations: 0.5209 MB / 358.8 MB, free: 3.484 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.139e-05/0.1124, allocations: 8.266 kB / 358.8 MB, free: 3.477 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.1124, allocations: 42.75 kB / 358.9 MB, free: 3.426 MB / 286.1 MB Notification: Performance of pre-optimization done (n=44): time 1.853e-06/0.1124, allocations: 0 / 358.9 MB, free: 3.426 MB / 286.1 MB Notification: Performance of matching and sorting (n=72): time 0.03832/0.1508, allocations: 6.735 MB / 365.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.1509, allocations: 152.9 kB / 365.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.1511, allocations: 195.2 kB / 366 MB, free: 12.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.155e-05/0.1512, allocations: 42.08 kB / 366 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.897e-05/0.1513, allocations: 137.5 kB / 366.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.1515, allocations: 189.3 kB / 366.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.499e-05/0.1516, allocations: 16 kB / 366.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1517, allocations: 346.7 kB / 366.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.1533, allocations: 0.6539 MB / 367.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001691/0.155, allocations: 0.8314 MB / 368.2 MB, free: 10 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.1565, allocations: 0.6059 MB / 368.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.1565, allocations: 0 / 368.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003471/0.16, allocations: 1.476 MB / 370.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.16, allocations: 4 kB / 370.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.16, allocations: 8 kB / 370.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.1601, allocations: 8 kB / 370.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.1613, allocations: 231.7 kB / 370.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.1614, allocations: 11.94 kB / 370.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009322/0.1623, allocations: 131.7 kB / 370.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.1624, allocations: 28 kB / 370.6 MB, free: 7.496 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00035/0.1627, allocations: 189.5 kB / 370.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003391/0.1631, allocations: 149.2 kB / 371 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001636/0.1633, allocations: 63.3 kB / 371 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.1633, allocations: 8 kB / 371 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.1633, allocations: 0 / 371 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.1633, allocations: 7.984 kB / 371.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004745/0.1681, allocations: 2.28 MB / 373.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.1681, allocations: 12 kB / 373.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007421/0.1688, allocations: 204.5 kB / 373.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.635e-05/0.1689, allocations: 16 kB / 373.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/0.1689, allocations: 24 kB / 373.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.351e-05/0.169, allocations: 19.92 kB / 373.6 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.214e-05/0.169, allocations: 15.94 kB / 373.6 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003619/0.1726, allocations: 2.185 MB / 375.8 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.1729, allocations: 160.7 kB / 376 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.17e-05/0.173, allocations: 27.94 kB / 376 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005913/0.1736, allocations: 99.97 kB / 376.1 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.1738, allocations: 107.6 kB / 376.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.312e-05/0.1739, allocations: 28 kB / 376.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.174, allocations: 143.2 kB / 376.4 MB, free: 1.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.174, allocations: 0 / 376.4 MB, free: 1.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006688/0.1747, allocations: 120 kB / 376.5 MB, free: 1.023 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004915/0.1796, allocations: 5.763 MB / 382.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.1826, allocations: 1.187 MB / 383.4 MB, free: 9.746 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.1826, allocations: 4 kB / 383.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.1837, allocations: 378 kB / 383.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006852/0.1844, allocations: 123 kB / 383.9 MB, free: 9.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.195, allocations: 7.816 MB / 391.7 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.1955, allocations: 0.8171 MB / 392.6 MB, free: 312 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005969/0.1961, allocations: 91.36 kB / 392.6 MB, free: 220 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003561/0.1965, allocations: 115.4 kB / 392.8 MB, free: 104 kB / 318.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1965, allocations: 0 / 392.8 MB, free: 104 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.2207, allocations: 10.19 MB / 402.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000263/0.221, allocations: 199 kB / 403.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.099/2.32, allocations: 0 / 403.1 MB, free: 5.82 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat does not exist to compare? outputFormat=mat