Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 172.4 kB / 16.14 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.4 MB / 222.3 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007792/0.000779, allocations: 100.8 kB / 270.7 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08158/0.08158, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003677/0.0003678, allocations: 12 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09831, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.002358/0.1007, allocations: 1.835 MB / 445 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.102, allocations: 0.6792 MB / 445.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002293/0.1023, allocations: 0 / 445.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003049/0.1026, allocations: 39.77 kB / 445.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.1028, allocations: 43.69 kB / 445.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004228/0.1033, allocations: 103.9 kB / 445.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003695/0.1037, allocations: 327.2 kB / 446.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.1038, allocations: 68.31 kB / 446.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.1041, allocations: 123.5 kB / 446.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.1044, allocations: 135.5 kB / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.294e-05/0.1044, allocations: 16 kB / 446.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.212e-05/0.1045, allocations: 16 kB / 446.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.755e-05/0.1046, allocations: 71.72 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1047, allocations: 137.1 kB / 446.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.1049, allocations: 255 kB / 447 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1049, allocations: 4 kB / 447 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1049, allocations: 3.938 kB / 447 MB, free: 11.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.617e-06/0.1049, allocations: 0 / 447 MB, free: 11.46 MB / 298.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.001069/0.106, allocations: 0.5534 MB / 447.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.1061, allocations: 8.031 kB / 447.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.038e-05/0.1062, allocations: 62.73 kB / 447.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.973e-05/0.1062, allocations: 32.66 kB / 447.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.1066, allocations: 252.4 kB / 447.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001766/0.1068, allocations: 142 kB / 448 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.599e-05/0.1068, allocations: 27.98 kB / 448 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007916/0.1076, allocations: 387.5 kB / 448.4 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.1076, allocations: 0 / 448.4 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.1077, allocations: 12 kB / 448.4 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.1077, allocations: 4 kB / 448.4 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.1089, allocations: 0.5096 MB / 448.9 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.1104, allocations: 1.03 MB / 450 MB, free: 8.258 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.1115, allocations: 356.5 kB / 450.3 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004941/0.112, allocations: 193.1 kB / 450.5 MB, free: 7.711 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.112, allocations: 240 / 450.5 MB, free: 7.711 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.112, allocations: 38.8 kB / 450.5 MB, free: 7.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.613e-06/0.1121, allocations: 0 / 450.5 MB, free: 7.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02609/0.1381, allocations: 6.677 MB / 457.2 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.1382, allocations: 55.84 kB / 457.3 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.1384, allocations: 194.3 kB / 457.5 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.844e-05/0.1385, allocations: 29.7 kB / 457.5 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.66e-05/0.1386, allocations: 160.6 kB / 457.7 MB, free: 440 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.1387, allocations: 173.5 kB / 457.8 MB, free: 264 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.67e-05/0.1387, allocations: 12 kB / 457.8 MB, free: 252 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.485e-05/0.1388, allocations: 334.8 kB / 458.2 MB, free: 15.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.1402, allocations: 0.493 MB / 458.7 MB, free: 15.42 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.1415, allocations: 0.5568 MB / 459.2 MB, free: 14.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002375/0.1439, allocations: 0.8852 MB / 460.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1439, allocations: 3.938 kB / 460.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002794/0.1468, allocations: 1.053 MB / 461.2 MB, free: 12.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.1468, allocations: 15.94 kB / 461.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.1468, allocations: 0 / 461.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.1468, allocations: 4 kB / 461.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.1479, allocations: 187.7 kB / 461.4 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.3e-05/0.1479, allocations: 4 kB / 461.4 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007186/0.1486, allocations: 107.9 kB / 461.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.61e-05/0.1487, allocations: 16 kB / 461.5 MB, free: 12.55 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002521/0.149, allocations: 158 kB / 461.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.885e-05/0.1491, allocations: 27.66 kB / 461.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.1492, allocations: 51.25 kB / 461.7 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1492, allocations: 8 kB / 461.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.1492, allocations: 8 kB / 461.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.1493, allocations: 3.984 kB / 461.7 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004287/0.1535, allocations: 2.006 MB / 463.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/0.1536, allocations: 8 kB / 463.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006478/0.1542, allocations: 163.9 kB / 463.9 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.62e-05/0.1543, allocations: 15.94 kB / 463.9 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.594e-05/0.1543, allocations: 20 kB / 463.9 MB, free: 9.918 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.224e-05/0.1543, allocations: 15.92 kB / 464 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/0.1544, allocations: 15.94 kB / 464 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/0.1572, allocations: 1.334 MB / 465.3 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.1574, allocations: 148.7 kB / 465.4 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.275e-05/0.1575, allocations: 23.98 kB / 465.5 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005349/0.158, allocations: 91.92 kB / 465.6 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/0.1582, allocations: 87.66 kB / 465.6 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.1583, allocations: 24 kB / 465.7 MB, free: 8.039 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001734/0.1584, allocations: 156.3 kB / 465.8 MB, free: 7.887 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1584, allocations: 0 / 465.8 MB, free: 7.887 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004888/0.1589, allocations: 92 kB / 465.9 MB, free: 7.797 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003196/0.1621, allocations: 1.89 MB / 467.8 MB, free: 5.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00243/0.1646, allocations: 0.9235 MB / 468.7 MB, free: 4.852 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/0.1646, allocations: 4 kB / 468.7 MB, free: 4.848 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.1656, allocations: 369.7 kB / 469.1 MB, free: 4.488 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009421/0.1666, allocations: 64.05 kB / 469.2 MB, free: 4.426 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.1778, allocations: 5.587 MB / 474.7 MB, free: 14.53 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.1783, allocations: 0.7879 MB / 475.5 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005555/0.1788, allocations: 79.19 kB / 475.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002925/0.1791, allocations: 91.41 kB / 475.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.1792, allocations: 4 kB / 475.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.2005, allocations: 7.599 MB / 483.3 MB, free: 5.922 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001721/0.2007, allocations: 233.8 kB / 483.5 MB, free: 5.656 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.058/2.258, allocations: 0 / 483.5 MB, free: 5.656 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat