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.001232/0.001232, allocations: 108.2 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 66.66 kB / 306.3 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09609, allocations: 50.53 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003936/0.1001, allocations: 2.409 MB / 359.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.1016, allocations: 0.8262 MB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.1019, allocations: 7.938 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002434/0.1021, allocations: 39.77 kB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.1024, allocations: 51.69 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005291/0.1029, allocations: 151.4 kB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.1033, allocations: 363.5 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002137/0.1036, allocations: 99.72 kB / 360.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003367/0.1039, allocations: 155.4 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.1042, allocations: 171.3 kB / 361.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-05/0.1043, allocations: 20 kB / 361.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.514e-05/0.1043, allocations: 24 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1044, allocations: 83.72 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.1046, allocations: 135.3 kB / 361.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.1049, allocations: 319.1 kB / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1049, allocations: 0 / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1049, allocations: 0 / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1049, allocations: 0 / 361.7 MB, free: 9.582 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.001192/0.1061, allocations: 0.6262 MB / 362.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.1061, allocations: 8.031 kB / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.885e-05/0.1062, allocations: 70.72 kB / 362.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.08e-05/0.1063, allocations: 36.56 kB / 362.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.1066, allocations: 273.4 kB / 362.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.1068, allocations: 142.3 kB / 362.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.1069, allocations: 24.38 kB / 362.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.1081, allocations: 0.5704 MB / 363.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1081, allocations: 7.938 kB / 363.4 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.1081, allocations: 8 kB / 363.4 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1082, allocations: 8 kB / 363.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.1094, allocations: 0.5113 MB / 364 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.111, allocations: 1.002 MB / 365 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.1125, allocations: 0.5024 MB / 365.5 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005601/0.113, allocations: 262.2 kB / 365.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.649e-05/0.1131, allocations: 16.08 kB / 365.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.1131, allocations: 42.5 kB / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.643e-06/0.1131, allocations: 0 / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1754/0.2886, allocations: 5.715 MB / 371.5 MB, free: 20.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.2887, allocations: 152.6 kB / 371.6 MB, free: 20.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.289, allocations: 195.9 kB / 371.8 MB, free: 20.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.2891, allocations: 38.48 kB / 371.9 MB, free: 20.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.2892, allocations: 144.1 kB / 372 MB, free: 20.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/0.2894, allocations: 191.2 kB / 372.2 MB, free: 20.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003398/0.2898, allocations: 110 kB / 372.3 MB, free: 20.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.113e-05/0.2898, allocations: 342.5 kB / 372.6 MB, free: 20 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.2914, allocations: 0.6182 MB / 373.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.293, allocations: 0.7953 MB / 374.1 MB, free: 19.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/0.2957, allocations: 1.253 MB / 375.3 MB, free: 18.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.2957, allocations: 2.75 kB / 375.3 MB, free: 18.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003116/0.2988, allocations: 1.393 MB / 376.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.2989, allocations: 6.531 kB / 376.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.2989, allocations: 7.125 kB / 376.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.2989, allocations: 11.44 kB / 376.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.3002, allocations: 216.6 kB / 376.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.162e-05/0.3003, allocations: 10.06 kB / 377 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009264/0.3012, allocations: 101.4 kB / 377.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-05/0.3013, allocations: 32.81 kB / 377.1 MB, free: 18.21 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.0002572/0.3016, allocations: 184.1 kB / 377.3 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002771/0.3018, allocations: 153.8 kB / 377.4 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.302, allocations: 62.23 kB / 377.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.302, allocations: 11.66 kB / 377.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.302, allocations: 1.531 kB / 377.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.302, allocations: 5.953 kB / 377.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004741/0.3068, allocations: 2.17 MB / 379.7 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.238e-05/0.3068, allocations: 11.88 kB / 379.7 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007182/0.3075, allocations: 186.5 kB / 379.9 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.571e-05/0.3076, allocations: 14.23 kB / 379.9 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.505e-05/0.3076, allocations: 25 kB / 379.9 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.649e-05/0.3076, allocations: 19.38 kB / 379.9 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/0.3077, allocations: 15.92 kB / 379.9 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.3104, allocations: 1.559 MB / 381.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.3106, allocations: 160.5 kB / 381.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.879e-05/0.3107, allocations: 30.84 kB / 381.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005701/0.3113, allocations: 78.58 kB / 381.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.3115, allocations: 96.03 kB / 381.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.76e-05/0.3115, allocations: 33.47 kB / 381.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001196/0.3117, allocations: 142.2 kB / 382 MB, free: 15.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3117, allocations: 0 / 382 MB, free: 15.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006641/0.3123, allocations: 126.6 kB / 382.1 MB, free: 15.46 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.002998/0.3153, allocations: 2.122 MB / 384.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00254/0.3179, allocations: 1.118 MB / 385.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.3179, allocations: 2.438 kB / 385.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009482/0.3189, allocations: 344.7 kB / 385.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009002/0.3198, allocations: 140.2 kB / 385.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.3318, allocations: 6.913 MB / 392.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.3322, allocations: 0.8142 MB / 393.6 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006197/0.3328, allocations: 91.75 kB / 393.7 MB, free: 8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/0.3332, allocations: 120.5 kB / 393.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3332, allocations: 0 / 393.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/0.355, allocations: 10.54 MB / 404.3 MB, free: 15.48 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.3552, allocations: 217.8 kB / 404.5 MB, free: 15.22 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.26, allocations: 0 / 404.5 MB, free: 15.22 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