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.001592/0.001592, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000818/0.000818, allocations: 96.5 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.911e-05/1.915e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1209, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3757/0.4967, allocations: 80.29 MB / 467.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.4969, allocations: 67.97 kB / 467.9 MB, free: 14.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02043/0.5173, allocations: 7.253 MB / 475.2 MB, free: 7.168 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5174, allocations: 0 / 475.2 MB, free: 7.168 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.5174, allocations: 8 kB / 475.2 MB, free: 7.16 MB / 346.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.001051/0.5185, allocations: 0.6159 MB / 475.8 MB, free: 6.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.5185, allocations: 8.031 kB / 475.8 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.888e-05/0.5186, allocations: 43.53 kB / 475.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.519, allocations: 286 kB / 476.1 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.5192, allocations: 137.8 kB / 476.3 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/0.5193, allocations: 20 kB / 476.3 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006799/0.52, allocations: 405.4 kB / 476.7 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000746/0.5207, allocations: 471.8 kB / 477.1 MB, free: 5.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.5208, allocations: 7.844 kB / 477.1 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.5208, allocations: 0 / 477.1 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.587e-06/0.5208, allocations: 8 kB / 477.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.5222, allocations: 0.976 MB / 478.1 MB, free: 4.016 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008349/0.5231, allocations: 402.8 kB / 478.5 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002837/0.5234, allocations: 192.4 kB / 478.7 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.674e-05/0.5234, allocations: 8 kB / 478.7 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.5235, allocations: 51.27 kB / 478.8 MB, free: 3.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 2.124e-06/0.5235, allocations: 0 / 478.8 MB, free: 3.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.007154/0.5307, allocations: 2.044 MB / 480.8 MB, free: 1.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/0.5308, allocations: 145 kB / 480.9 MB, free: 1.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.531, allocations: 226.1 kB / 481.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.255e-05/0.5311, allocations: 25.7 kB / 481.2 MB, free: 0.832 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.675e-05/0.5312, allocations: 141.5 kB / 481.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.5314, allocations: 189.2 kB / 481.5 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.709e-05/0.5315, allocations: 0 / 481.5 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.5316, allocations: 354.7 kB / 481.9 MB, free: 152 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006676/0.5323, allocations: 465.6 kB / 482.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007666/0.5331, allocations: 0.6291 MB / 482.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006276/0.5337, allocations: 422 kB / 483.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.5337, allocations: 0 / 483.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001666/0.5354, allocations: 1.046 MB / 484.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.5354, allocations: 8 kB / 484.4 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.5354, allocations: 4 kB / 484.4 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/0.5355, allocations: 15.95 kB / 484.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.5368, allocations: 231.9 kB / 484.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.5368, allocations: 11.94 kB / 484.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009189/0.5377, allocations: 115.7 kB / 484.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.772e-05/0.5378, allocations: 24 kB / 484.8 MB, free: 13.12 MB / 362.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 () * 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.0002729/0.5381, allocations: 120.7 kB / 484.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001725/0.5398, allocations: 0.9096 MB / 485.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.54, allocations: 47.48 kB / 485.9 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002611/0.5403, allocations: 59.39 kB / 485.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.5403, allocations: 8 kB / 485.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.5403, allocations: 4 kB / 485.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.5403, allocations: 4.172 kB / 485.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003815/0.5441, allocations: 1.919 MB / 487.9 MB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.589e-05/0.5442, allocations: 12 kB / 487.9 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008288/0.545, allocations: 199.8 kB / 488.1 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.429e-05/0.545, allocations: 12 kB / 488.1 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.994e-05/0.5451, allocations: 23.94 kB / 488.1 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.596e-05/0.5451, allocations: 15.94 kB / 488.1 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/0.5451, allocations: 15.94 kB / 488.1 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.5469, allocations: 1.71 MB / 489.9 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.5472, allocations: 176.5 kB / 490 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.249e-05/0.5473, allocations: 19.98 kB / 490 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000637/0.5479, allocations: 87.97 kB / 490.1 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/0.5481, allocations: 107.7 kB / 490.2 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.162e-05/0.5482, allocations: 28 kB / 490.3 MB, free: 7.031 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001874/0.5484, allocations: 178 kB / 490.4 MB, free: 6.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5484, allocations: 0 / 490.4 MB, free: 6.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007208/0.5491, allocations: 108 kB / 490.5 MB, free: 6.754 MB / 362.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 () * 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.003498/0.5526, allocations: 5.3 MB / 495.8 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.554, allocations: 0.8235 MB / 496.7 MB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.554, allocations: 0 / 496.7 MB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003951/0.5544, allocations: 215.5 kB / 496.9 MB, free: 100 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.5551, allocations: 131.1 kB / 497 MB, free: 15.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.5574, allocations: 1.036 MB / 498 MB, free: 14.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.5578, allocations: 0.8405 MB / 498.9 MB, free: 13.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005849/0.5584, allocations: 96.14 kB / 499 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003492/0.5587, allocations: 119.4 kB / 499.1 MB, free: 13.69 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5587, allocations: 0 / 499.1 MB, free: 13.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03081/0.5896, allocations: 10.29 MB / 0.4974 GB, free: 3.43 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002872/0.5899, allocations: 158.3 kB / 0.4976 GB, free: 3.234 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.143/2.733, allocations: 4.125 kB / 0.4976 GB, free: 3.234 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