Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001642/0.001642, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002644/0.002643, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 64.23 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09244/0.09374, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003733/0.09751, allocations: 2.328 MB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.09898, allocations: 0.7989 MB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.09918, allocations: 7.938 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002736/0.09946, allocations: 47.58 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002161/0.09971, allocations: 67.55 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005258/0.1002, allocations: 155.7 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.1007, allocations: 383.5 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.1009, allocations: 103.3 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003086/0.1012, allocations: 155.5 kB / 361.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.1015, allocations: 175.2 kB / 361.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.1015, allocations: 32 kB / 361.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.82e-05/0.1016, allocations: 36 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.1017, allocations: 99.72 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.1019, allocations: 135.3 kB / 362.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.1022, allocations: 323.2 kB / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.1022, allocations: 0 / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1022, allocations: 0 / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1022, allocations: 0 / 362.4 MB, free: 9.172 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001171/0.1034, allocations: 0.6084 MB / 363 MB, free: 8.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1034, allocations: 8.031 kB / 363 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.1035, allocations: 74.72 kB / 363.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.471e-05/0.1036, allocations: 36.56 kB / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.1039, allocations: 276.3 kB / 363.4 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.1041, allocations: 130.2 kB / 363.5 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.148e-05/0.1042, allocations: 36.31 kB / 363.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.1054, allocations: 0.5581 MB / 364.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.1054, allocations: 0 / 364.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.1054, allocations: 12 kB / 364.1 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.1055, allocations: 4 kB / 364.1 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.1068, allocations: 0.5113 MB / 364.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/0.1083, allocations: 0.9979 MB / 365.6 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.11, allocations: 0.5096 MB / 366.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006416/0.1106, allocations: 259.3 kB / 366.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.563e-05/0.1107, allocations: 11.98 kB / 366.4 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.1107, allocations: 38.56 kB / 366.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.395e-06/0.1107, allocations: 4 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2159/0.3266, allocations: 5.711 MB / 372.1 MB, free: 20.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.3268, allocations: 146.4 kB / 372.3 MB, free: 20.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.3272, allocations: 196.2 kB / 372.5 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.3273, allocations: 38.23 kB / 372.5 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.3275, allocations: 139.9 kB / 372.7 MB, free: 20.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.3277, allocations: 201.2 kB / 372.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003615/0.3281, allocations: 105.2 kB / 373 MB, free: 20.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3282, allocations: 343.9 kB / 373.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001889/0.3301, allocations: 0.618 MB / 373.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/0.3321, allocations: 0.7939 MB / 374.7 MB, free: 19.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00337/0.3355, allocations: 1.246 MB / 376 MB, free: 18.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/0.3355, allocations: 3.375 kB / 376 MB, free: 18.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004018/0.3396, allocations: 1.396 MB / 377.4 MB, free: 18.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.3396, allocations: 7.062 kB / 377.4 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.3396, allocations: 6.828 kB / 377.4 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.262e-05/0.3397, allocations: 12 kB / 377.4 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.3411, allocations: 210.4 kB / 377.6 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.458e-05/0.3412, allocations: 14.11 kB / 377.6 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.3423, allocations: 106 kB / 377.7 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.492e-05/0.3424, allocations: 27.3 kB / 377.7 MB, free: 17.99 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.0003801/0.3428, allocations: 184.1 kB / 377.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.3432, allocations: 156.2 kB / 378.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001736/0.3434, allocations: 63.8 kB / 378.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.3434, allocations: 7.406 kB / 378.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.927e-05/0.3434, allocations: 3.766 kB / 378.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3434, allocations: 3.094 kB / 378.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005329/0.3488, allocations: 2.18 MB / 380.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-05/0.3488, allocations: 11.44 kB / 380.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008276/0.3497, allocations: 181.4 kB / 380.5 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.914e-05/0.3497, allocations: 13.92 kB / 380.5 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-05/0.3498, allocations: 28.72 kB / 380.5 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.429e-05/0.3498, allocations: 20.06 kB / 380.6 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.745e-05/0.3498, allocations: 20.33 kB / 380.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003303/0.3532, allocations: 1.549 MB / 382.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002577/0.3534, allocations: 172.3 kB / 382.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.341e-05/0.3535, allocations: 25.55 kB / 382.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006534/0.3542, allocations: 78.86 kB / 382.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.3545, allocations: 96.61 kB / 382.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.347e-05/0.3545, allocations: 30.23 kB / 382.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001457/0.3547, allocations: 141.6 kB / 382.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3547, allocations: 0 / 382.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008061/0.3555, allocations: 122.9 kB / 382.8 MB, free: 15.25 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.003475/0.359, allocations: 2.119 MB / 384.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00304/0.3621, allocations: 1.159 MB / 386.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/0.3621, allocations: 1.312 kB / 386.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.3632, allocations: 341 kB / 386.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.3643, allocations: 140.9 kB / 386.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/0.3784, allocations: 6.762 MB / 393.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.3788, allocations: 0.8097 MB / 394.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000642/0.3794, allocations: 100.5 kB / 394.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.3798, allocations: 114.7 kB / 394.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3798, allocations: 1.5 kB / 394.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03148/0.4113, allocations: 11.18 MB / 405.5 MB, free: 14.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.306/8.718, allocations: 11.12 kB / 405.5 MB, free: 14.43 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches