Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007785/0.0007785, allocations: 96.19 kB / 17 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009255/0.0009255, allocations: 192.7 kB / 17.91 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003532/0.0003533, allocations: 4 kB / 306.8 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1266, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002724/0.1294, allocations: 2.008 MB / 360.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.1309, allocations: 0.8306 MB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.131, allocations: 11.94 kB / 361.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002492/0.1313, allocations: 35.7 kB / 361.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.1315, allocations: 59.67 kB / 361.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005204/0.132, allocations: 163.6 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003858/0.1324, allocations: 351.3 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.1326, allocations: 82.09 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002502/0.1328, allocations: 143.5 kB / 362 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.1331, allocations: 151.3 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.002e-05/0.1331, allocations: 19.94 kB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.888e-05/0.1332, allocations: 16 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1333, allocations: 95.69 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.236e-05/0.1334, allocations: 73.58 kB / 362.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.1336, allocations: 251.6 kB / 362.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.1336, allocations: 4 kB / 362.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1336, allocations: 0 / 362.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1336, allocations: 0 / 362.6 MB, free: 9.711 MB / 302.1 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.001086/0.1347, allocations: 0.6274 MB / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1348, allocations: 12.03 kB / 363.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.696e-05/0.1349, allocations: 70.53 kB / 363.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.1349, allocations: 47.53 kB / 363.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.1353, allocations: 286 kB / 363.6 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/0.1355, allocations: 153.7 kB / 363.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.1356, allocations: 28 kB / 363.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.1367, allocations: 0.5755 MB / 364.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.1368, allocations: 3.938 kB / 364.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.1368, allocations: 16 kB / 364.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1368, allocations: 4 kB / 364.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.1381, allocations: 0.5374 MB / 364.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.1396, allocations: 1.037 MB / 365.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.141, allocations: 0.514 MB / 366.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000576/0.1416, allocations: 279.7 kB / 366.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.113e-05/0.1417, allocations: 8.141 kB / 366.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.1417, allocations: 50.67 kB / 366.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.224e-06/0.1417, allocations: 0 / 366.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2401/0.3819, allocations: 6.785 MB / 373.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.382, allocations: 152.8 kB / 373.7 MB, free: 20.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003586/0.3824, allocations: 261.1 kB / 374 MB, free: 20 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.326e-05/0.3825, allocations: 38.05 kB / 374 MB, free: 19.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3826, allocations: 149.7 kB / 374.2 MB, free: 19.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000205/0.3828, allocations: 191.9 kB / 374.4 MB, free: 19.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.572e-05/0.3829, allocations: 12.88 kB / 374.4 MB, free: 19.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.172e-05/0.383, allocations: 344 kB / 374.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.3845, allocations: 0.6523 MB / 375.4 MB, free: 19.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/0.3861, allocations: 0.8401 MB / 376.2 MB, free: 18.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.3875, allocations: 0.5959 MB / 376.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3875, allocations: 1.375 kB / 376.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003247/0.3908, allocations: 1.476 MB / 378.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.838e-05/0.3908, allocations: 11.38 kB / 378.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.3909, allocations: 5.5 kB / 378.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.3909, allocations: 9.594 kB / 378.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.3921, allocations: 230.8 kB / 378.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.323e-05/0.3922, allocations: 14.88 kB / 378.5 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008911/0.3931, allocations: 119.7 kB / 378.6 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/0.3932, allocations: 28.92 kB / 378.7 MB, free: 18.13 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.000305/0.3935, allocations: 186.9 kB / 378.9 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002916/0.3938, allocations: 160.6 kB / 379 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001867/0.394, allocations: 75.05 kB / 379.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.394, allocations: 8.469 kB / 379.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.394, allocations: 1.938 kB / 379.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.394, allocations: 7.219 kB / 379.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004357/0.3984, allocations: 2.311 MB / 381.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/0.3984, allocations: 10.47 kB / 381.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00073/0.3991, allocations: 200 kB / 381.6 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.3992, allocations: 14.81 kB / 381.6 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/0.3992, allocations: 24.27 kB / 381.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-05/0.3992, allocations: 21.75 kB / 381.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/0.3993, allocations: 19.23 kB / 381.7 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002874/0.4021, allocations: 1.662 MB / 383.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.4024, allocations: 183.8 kB / 383.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.587e-05/0.4025, allocations: 27.05 kB / 383.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005399/0.403, allocations: 102.5 kB / 383.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/0.4032, allocations: 104.3 kB / 383.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.888e-05/0.4033, allocations: 30.31 kB / 383.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.4034, allocations: 184.3 kB / 384 MB, free: 15.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.12e-07/0.4035, allocations: 0 / 384 MB, free: 15.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007274/0.4042, allocations: 128.2 kB / 384.1 MB, free: 15.31 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.003623/0.4078, allocations: 2.24 MB / 386.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003118/0.411, allocations: 1.189 MB / 387.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/0.411, allocations: 1.219 kB / 387.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009489/0.4119, allocations: 373.3 kB / 387.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009994/0.413, allocations: 156.4 kB / 388.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008636/0.4216, allocations: 4.363 MB / 392.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.4219, allocations: 0.832 MB / 393.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005935/0.4225, allocations: 99.14 kB / 393.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003355/0.4229, allocations: 120.4 kB / 393.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4229, allocations: 0 / 393.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.445, allocations: 10.62 MB / 404.1 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/0.4452, allocations: 205 kB / 404.3 MB, free: 432 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.073/2.518, allocations: 3.938 kB / 404.3 MB, free: 428 kB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat