Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 180.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009583/0.0009583, allocations: 105.2 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002351/0.0002351, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2099, allocations: 50.4 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09179/0.3018, allocations: 81.02 MB / 482.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001846/0.302, allocations: 79.95 kB / 482.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02133/0.3233, allocations: 7.307 MB / 490 MB, free: 8.016 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3234, allocations: 0 / 490 MB, free: 8.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.3234, allocations: 8 kB / 490 MB, free: 8.008 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001195/0.3246, allocations: 0.6468 MB / 490.6 MB, free: 7.312 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3246, allocations: 12.03 kB / 490.6 MB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.358e-05/0.3247, allocations: 70.53 kB / 490.7 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.279e-05/0.3248, allocations: 51.53 kB / 490.8 MB, free: 7.172 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.3252, allocations: 294 kB / 491 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.3254, allocations: 137.7 kB / 491.2 MB, free: 6.688 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-05/0.3255, allocations: 35.94 kB / 491.2 MB, free: 6.652 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.3267, allocations: 0.5699 MB / 491.8 MB, free: 6.059 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.3268, allocations: 7.984 kB / 491.8 MB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.3268, allocations: 8 kB / 491.8 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3268, allocations: 8 kB / 491.8 MB, free: 6.035 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/0.3282, allocations: 0.5453 MB / 492.4 MB, free: 5.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.3298, allocations: 1.037 MB / 493.4 MB, free: 4.379 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.3313, allocations: 0.5026 MB / 493.9 MB, free: 3.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.534e-05/0.3313, allocations: 8.547 kB / 493.9 MB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.3314, allocations: 47.39 kB / 493.9 MB, free: 3.777 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.194e-06/0.3314, allocations: 0 / 493.9 MB, free: 3.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.04121/0.3726, allocations: 6.82 MB / 0.489 GB, free: 12.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.3727, allocations: 145 kB / 0.4892 GB, free: 12.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.373, allocations: 233.7 kB / 0.4894 GB, free: 12.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.436e-05/0.3732, allocations: 41.7 kB / 0.4894 GB, free: 12.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3733, allocations: 149.5 kB / 0.4896 GB, free: 12.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/0.3735, allocations: 197.3 kB / 0.4898 GB, free: 12.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.399e-05/0.3736, allocations: 8 kB / 0.4898 GB, free: 12.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.3738, allocations: 350.8 kB / 0.4901 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.3754, allocations: 0.6543 MB / 0.4907 GB, free: 11.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.3771, allocations: 0.8394 MB / 0.4916 GB, free: 10.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.3786, allocations: 0.6073 MB / 0.4922 GB, free: 9.609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3786, allocations: 0 / 0.4922 GB, free: 9.609 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003529/0.3821, allocations: 1.49 MB / 0.4936 GB, free: 8.113 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.3822, allocations: 10.81 kB / 0.4936 GB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3822, allocations: 4 kB / 0.4936 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.851e-05/0.3822, allocations: 12 kB / 0.4936 GB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.3836, allocations: 227.8 kB / 0.4939 GB, free: 7.867 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.007e-05/0.3837, allocations: 16.25 kB / 0.4939 GB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.3847, allocations: 123.7 kB / 0.494 GB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.828e-05/0.3848, allocations: 31.98 kB / 0.494 GB, free: 7.699 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003629/0.3851, allocations: 193.5 kB / 0.4942 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003382/0.3855, allocations: 165 kB / 0.4944 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/0.3857, allocations: 75.61 kB / 0.4944 GB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.3857, allocations: 8 kB / 0.4944 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3857, allocations: 0 / 0.4944 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3857, allocations: 3.984 kB / 0.4944 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004867/0.3906, allocations: 2.316 MB / 0.4967 GB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.3906, allocations: 12 kB / 0.4967 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008284/0.3915, allocations: 204.2 kB / 0.4969 GB, free: 4.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.979e-05/0.3915, allocations: 19.98 kB / 0.4969 GB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.775e-05/0.3916, allocations: 24 kB / 0.497 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.458e-05/0.3916, allocations: 19.88 kB / 0.497 GB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.3916, allocations: 15.94 kB / 0.497 GB, free: 4.457 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003714/0.3953, allocations: 2.193 MB / 0.4991 GB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.3957, allocations: 184.7 kB / 0.4993 GB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.523e-05/0.3958, allocations: 35.98 kB / 0.4993 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006165/0.3964, allocations: 103.9 kB / 0.4994 GB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/0.3966, allocations: 107.6 kB / 0.4995 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.121e-05/0.3967, allocations: 31.95 kB / 0.4996 GB, free: 1.363 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002046/0.3969, allocations: 190 kB / 0.4998 GB, free: 1.176 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3969, allocations: 0 / 0.4998 GB, free: 1.176 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007158/0.3976, allocations: 128 kB / 0.4999 GB, free: 1.051 MB / 378.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.1836/0.5812, allocations: 5.793 MB / 0.5055 GB, free: 98.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003586/0.5848, allocations: 1.203 MB / 0.5067 GB, free: 98.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/0.5849, allocations: 1.688 kB / 0.5067 GB, free: 98.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.5861, allocations: 385.8 kB / 0.5071 GB, free: 98.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008296/0.587, allocations: 135.8 kB / 0.5072 GB, free: 98.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008796/0.5958, allocations: 7.994 MB / 0.515 GB, free: 92.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.5961, allocations: 0.8376 MB / 0.5158 GB, free: 91.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000605/0.5967, allocations: 95.36 kB / 0.5159 GB, free: 91.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003376/0.5971, allocations: 120.6 kB / 0.516 GB, free: 91.63 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5971, allocations: 1.406 kB / 0.516 GB, free: 91.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.619, allocations: 10.68 MB / 0.5265 GB, free: 84.51 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.6192, allocations: 202.4 kB / 0.5267 GB, free: 84.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.138/2.757, allocations: 0 / 0.5267 GB, free: 84.27 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat