Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001163/0.001163, allocations: 105.4 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001176/0.001176, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 59.53 kB / 306.5 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1065, allocations: 50.52 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003839/0.1103, allocations: 2.409 MB / 359.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.112, allocations: 0.8301 MB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/0.1122, allocations: 7.938 kB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003218/0.1126, allocations: 43.7 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002458/0.1129, allocations: 43.75 kB / 360.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005908/0.1135, allocations: 155.8 kB / 360.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005006/0.114, allocations: 383.5 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002323/0.1142, allocations: 104.8 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003769/0.1146, allocations: 171.5 kB / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.1149, allocations: 183.2 kB / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.352e-05/0.115, allocations: 32 kB / 361.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.317e-05/0.1151, allocations: 36 kB / 361.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.1152, allocations: 99.7 kB / 361.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.1154, allocations: 147.2 kB / 361.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003529/0.1157, allocations: 327.2 kB / 362 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1157, allocations: 4 kB / 362 MB, free: 9.383 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1158, allocations: 0 / 362 MB, free: 9.383 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.1158, allocations: 7.938 kB / 362 MB, free: 9.375 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001325/0.1171, allocations: 0.6124 MB / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.1172, allocations: 8.031 kB / 362.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.52e-05/0.1173, allocations: 70.72 kB / 362.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.839e-05/0.1173, allocations: 36.56 kB / 362.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.1177, allocations: 280.2 kB / 363 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.1179, allocations: 138.3 kB / 363.2 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.91e-05/0.118, allocations: 24.38 kB / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.1192, allocations: 0.5704 MB / 363.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.1193, allocations: 4 kB / 363.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.1193, allocations: 8 kB / 363.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.1193, allocations: 8 kB / 363.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.1207, allocations: 0.5073 MB / 364.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.1226, allocations: 1.01 MB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002485/0.1251, allocations: 0.5063 MB / 365.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007202/0.1258, allocations: 274.6 kB / 366.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.568e-05/0.1259, allocations: 8 kB / 366.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.1259, allocations: 38.56 kB / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.924e-06/0.1259, allocations: 0 / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2295/0.3554, allocations: 5.716 MB / 371.8 MB, free: 20.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.3556, allocations: 149.5 kB / 372 MB, free: 20.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.3559, allocations: 202.3 kB / 372.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000138/0.356, allocations: 35.92 kB / 372.2 MB, free: 20.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.597e-05/0.3561, allocations: 142 kB / 372.3 MB, free: 20.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/0.3564, allocations: 194.7 kB / 372.5 MB, free: 20.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000338/0.3567, allocations: 107.4 kB / 372.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3569, allocations: 345.8 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.3586, allocations: 0.6165 MB / 373.6 MB, free: 19.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/0.3603, allocations: 0.7981 MB / 374.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.3631, allocations: 1.253 MB / 375.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3632, allocations: 2.438 kB / 375.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003475/0.3666, allocations: 1.396 MB / 377 MB, free: 18.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.3667, allocations: 7.75 kB / 377 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.3667, allocations: 5.75 kB / 377 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.788e-05/0.3668, allocations: 12.3 kB / 377.1 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.3681, allocations: 216.1 kB / 377.3 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.531e-05/0.3681, allocations: 12.81 kB / 377.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009331/0.3691, allocations: 93.2 kB / 377.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.27e-05/0.3692, allocations: 32.59 kB / 377.4 MB, free: 18.2 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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002961/0.3695, allocations: 183.9 kB / 377.6 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.3698, allocations: 156.2 kB / 377.7 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001565/0.3699, allocations: 63.92 kB / 377.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.37, allocations: 9.406 kB / 377.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/0.37, allocations: 0 / 377.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.37, allocations: 8.922 kB / 377.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004682/0.3747, allocations: 2.161 MB / 380 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-05/0.3747, allocations: 13.25 kB / 380 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000789/0.3755, allocations: 186.9 kB / 380.2 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-05/0.3755, allocations: 14.44 kB / 380.2 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.617e-05/0.3756, allocations: 28.27 kB / 380.2 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.689e-05/0.3756, allocations: 20.73 kB / 380.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/0.3757, allocations: 14.69 kB / 380.3 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003071/0.3787, allocations: 1.554 MB / 381.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.3789, allocations: 167.5 kB / 382 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.07e-05/0.379, allocations: 27.19 kB / 382 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005952/0.3796, allocations: 80.61 kB / 382.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.3798, allocations: 97.69 kB / 382.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.62e-05/0.3799, allocations: 34.17 kB / 382.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001251/0.38, allocations: 141.6 kB / 382.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3801, allocations: 1.156 kB / 382.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007561/0.3808, allocations: 122.2 kB / 382.5 MB, free: 15.45 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 (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.003465/0.3843, allocations: 2.121 MB / 384.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002959/0.3873, allocations: 1.153 MB / 385.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.3873, allocations: 1.609 kB / 385.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009656/0.3883, allocations: 343.9 kB / 386.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008956/0.3892, allocations: 135.2 kB / 386.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/0.401, allocations: 6.919 MB / 393.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.4013, allocations: 0.8148 MB / 393.9 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005909/0.4019, allocations: 98.77 kB / 394 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003354/0.4022, allocations: 116.3 kB / 394.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4023, allocations: 0 / 394.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/0.5326, allocations: 10.98 MB / 405.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002945/0.5329, allocations: 214.2 kB / 405.3 MB, free: 14.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/2.784, allocations: 0 / 405.3 MB, free: 14.59 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches