Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009858/0.0009857, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009375/0.0009375, allocations: 100.6 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.168e-05/2.172e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 51.48 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3452/0.466, allocations: 79.5 MB / 474.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.4662, allocations: 71 kB / 474.8 MB, free: 12.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01594/0.4821, allocations: 5.643 MB / 480.5 MB, free: 8.625 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.4822, allocations: 8.594 kB / 480.5 MB, free: 8.617 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.4822, allocations: 4 kB / 480.5 MB, free: 8.613 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001011/0.4832, allocations: 0.5458 MB / 481 MB, free: 8.043 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.4833, allocations: 12.03 kB / 481 MB, free: 8.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.147e-05/0.4834, allocations: 31.7 kB / 481.1 MB, free: 8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.4837, allocations: 241.2 kB / 481.3 MB, free: 7.742 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.4839, allocations: 133.6 kB / 481.4 MB, free: 7.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.805e-05/0.4839, allocations: 14.72 kB / 481.4 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005417/0.4845, allocations: 377.9 kB / 481.8 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/0.4849, allocations: 277.4 kB / 482.1 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.4849, allocations: 0 / 482.1 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.4849, allocations: 0 / 482.1 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.485, allocations: 8 kB / 482.1 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.4864, allocations: 0.974 MB / 483.1 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004724/0.4869, allocations: 246.8 kB / 483.3 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.487, allocations: 119 kB / 483.4 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.4871, allocations: 4 kB / 483.4 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.4871, allocations: 34.38 kB / 483.5 MB, free: 6.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.362e-06/0.4871, allocations: 0 / 483.5 MB, free: 6.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.006348/0.4935, allocations: 2.972 MB / 486.4 MB, free: 3.605 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.209e-05/0.4935, allocations: 59.84 kB / 486.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.4937, allocations: 182.8 kB / 486.7 MB, free: 3.375 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.4937, allocations: 25.7 kB / 486.7 MB, free: 3.344 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.4938, allocations: 142.4 kB / 486.8 MB, free: 3.215 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.972e-05/0.4939, allocations: 177.1 kB / 487 MB, free: 3.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-05/0.4939, allocations: 0 / 487 MB, free: 3.062 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.46e-05/0.494, allocations: 332.7 kB / 487.3 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.4944, allocations: 320.3 kB / 487.7 MB, free: 2.578 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004107/0.4948, allocations: 381.2 kB / 488 MB, free: 2.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.4952, allocations: 253.2 kB / 488.3 MB, free: 2.219 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4952, allocations: 0 / 488.3 MB, free: 2.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008735/0.496, allocations: 0.6725 MB / 488.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.4961, allocations: 7.953 kB / 489 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.4961, allocations: 128 / 489 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.4961, allocations: 8 kB / 489 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009784/0.4971, allocations: 194.2 kB / 489.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.4971, allocations: 7.375 kB / 489.2 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006623/0.4978, allocations: 95.89 kB / 489.2 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.906e-05/0.4978, allocations: 15.62 kB / 489.3 MB, free: 1.484 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (66): * Single equations (assignments): 66 * 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.000167/0.498, allocations: 116.8 kB / 489.4 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007861/0.4988, allocations: 0.5153 MB / 489.9 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.913e-05/0.4989, allocations: 27.67 kB / 489.9 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.499, allocations: 47.89 kB / 490 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.499, allocations: 4 kB / 490 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.499, allocations: 0 / 490 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.499, allocations: 11.98 kB / 490 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.5018, allocations: 1.613 MB / 491.6 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.5018, allocations: 8 kB / 491.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006683/0.5025, allocations: 171.6 kB / 491.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.415e-05/0.5025, allocations: 12 kB / 491.8 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.063e-05/0.5025, allocations: 14.92 kB / 491.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.451e-05/0.5026, allocations: 15.94 kB / 491.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/0.5026, allocations: 15.89 kB / 491.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.504, allocations: 1.292 MB / 493.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.5041, allocations: 148.4 kB / 493.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.967e-05/0.5042, allocations: 12 kB / 493.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005634/0.5048, allocations: 90.73 kB / 493.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.505, allocations: 97.2 kB / 493.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.719e-05/0.505, allocations: 23.5 kB / 493.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00012/0.5051, allocations: 138.2 kB / 493.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5051, allocations: 0 / 493.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005002/0.5057, allocations: 80 kB / 493.7 MB, free: 13.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * 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 (53): * Single equations (assignments): 53 * 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.002338/0.508, allocations: 4.269 MB / 498 MB, free: 9.086 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008401/0.5089, allocations: 0.5852 MB / 498.6 MB, free: 8.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5089, allocations: 1 kB / 498.6 MB, free: 8.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003418/0.5092, allocations: 205.5 kB / 498.8 MB, free: 8.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.5096, allocations: 40.66 kB / 498.8 MB, free: 8.582 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.5116, allocations: 0.8764 MB / 499.7 MB, free: 7.668 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.512, allocations: 0.7884 MB / 0.4887 GB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005178/0.5125, allocations: 77.31 kB / 0.4888 GB, free: 6.781 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.5128, allocations: 95.72 kB / 0.4889 GB, free: 6.742 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5128, allocations: 0 / 0.4889 GB, free: 6.742 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02755/0.5404, allocations: 7.26 MB / 0.496 GB, free: 15.56 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.5406, allocations: 163.3 kB / 0.4961 GB, free: 15.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.433, allocations: 0 / 0.4961 GB, free: 15.36 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat