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.001324/0.001324, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001589/0.001589, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 61.59 kB / 306.6 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0973/0.09872, allocations: 50.52 MB / 357.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003717/0.1025, allocations: 2.378 MB / 359.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1041, allocations: 0.8067 MB / 360.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/0.1043, allocations: 7.938 kB / 360.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.1046, allocations: 35.77 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.1049, allocations: 43.69 kB / 360.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.1054, allocations: 147.8 kB / 360.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.1058, allocations: 379.5 kB / 360.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.106, allocations: 99.36 kB / 361 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003279/0.1064, allocations: 155.5 kB / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.1066, allocations: 179.2 kB / 361.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.249e-05/0.1067, allocations: 32 kB / 361.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.44e-05/0.1068, allocations: 36 kB / 361.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.1069, allocations: 95.72 kB / 361.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.1071, allocations: 147.3 kB / 361.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.1074, allocations: 319.2 kB / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1074, allocations: 0 / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1074, allocations: 4 kB / 361.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1074, allocations: 0 / 361.9 MB, free: 9.27 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.001259/0.1087, allocations: 0.6123 MB / 362.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1087, allocations: 12.03 kB / 362.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.034e-05/0.1088, allocations: 62.73 kB / 362.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.466e-05/0.1089, allocations: 36.56 kB / 362.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.1092, allocations: 271.6 kB / 362.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.1094, allocations: 134.2 kB / 363 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.1095, allocations: 36.38 kB / 363.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.1108, allocations: 0.5568 MB / 363.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.1108, allocations: 3.938 kB / 363.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.1109, allocations: 12 kB / 363.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.1109, allocations: 4 kB / 363.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.1124, allocations: 0.5073 MB / 364.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.1141, allocations: 1.006 MB / 365.1 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.1156, allocations: 0.4985 MB / 365.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005785/0.1162, allocations: 262.7 kB / 365.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.579e-05/0.1163, allocations: 16.12 kB / 365.9 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.1163, allocations: 38.56 kB / 366 MB, free: 4.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.094e-06/0.1163, allocations: 0 / 366 MB, free: 4.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2184/0.3347, allocations: 5.715 MB / 371.7 MB, free: 20.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/0.3348, allocations: 151.7 kB / 371.8 MB, free: 20.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002181/0.335, allocations: 192.8 kB / 372 MB, free: 20.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.356e-05/0.3351, allocations: 35.27 kB / 372 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.58e-05/0.3351, allocations: 147.7 kB / 372.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.3353, allocations: 187.8 kB / 372.4 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002721/0.3356, allocations: 110.2 kB / 372.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.682e-05/0.3356, allocations: 343.8 kB / 372.8 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.3371, allocations: 0.6171 MB / 373.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.3387, allocations: 0.7983 MB / 374.2 MB, free: 19.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002759/0.3414, allocations: 1.248 MB / 375.5 MB, free: 18.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3414, allocations: 4.688 kB / 375.5 MB, free: 18.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003104/0.3445, allocations: 1.393 MB / 376.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3446, allocations: 8.703 kB / 376.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.3446, allocations: 5.188 kB / 376.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.3446, allocations: 13.48 kB / 376.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.3459, allocations: 210.7 kB / 377.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.3459, allocations: 12.25 kB / 377.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008782/0.3468, allocations: 106.1 kB / 377.2 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.919e-05/0.3469, allocations: 27.22 kB / 377.2 MB, free: 18.02 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.0002718/0.3472, allocations: 181.8 kB / 377.4 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002868/0.3475, allocations: 159.2 kB / 377.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000143/0.3476, allocations: 63.73 kB / 377.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.3476, allocations: 11.66 kB / 377.7 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/0.3476, allocations: 1.562 kB / 377.7 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.3477, allocations: 6.688 kB / 377.7 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004527/0.3522, allocations: 2.167 MB / 379.8 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.3522, allocations: 11.2 kB / 379.8 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006817/0.3529, allocations: 184.6 kB / 380 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.225e-05/0.3529, allocations: 17.59 kB / 380 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-05/0.353, allocations: 28.95 kB / 380.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.44e-05/0.353, allocations: 20.25 kB / 380.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.353, allocations: 18.78 kB / 380.1 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002841/0.3559, allocations: 1.552 MB / 381.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.356, allocations: 166 kB / 381.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.912e-05/0.3561, allocations: 25.56 kB / 381.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006235/0.3567, allocations: 77.2 kB / 381.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.3569, allocations: 96.64 kB / 382 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.189e-05/0.357, allocations: 30.38 kB / 382 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001108/0.3571, allocations: 149.4 kB / 382.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3571, allocations: 0 / 382.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006244/0.3578, allocations: 122.1 kB / 382.3 MB, free: 15.27 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.003214/0.361, allocations: 2.119 MB / 384.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002603/0.3636, allocations: 1.152 MB / 385.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.3636, allocations: 1.469 kB / 385.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008875/0.3645, allocations: 343.8 kB / 385.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008547/0.3654, allocations: 144.2 kB / 386.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.376, allocations: 6.906 MB / 393 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.3763, allocations: 0.8151 MB / 393.8 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006593/0.3769, allocations: 91.31 kB / 393.9 MB, free: 7.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/0.3773, allocations: 116.3 kB / 394 MB, free: 7.715 MB / 302.1 MB Notification: Performance of SimCode: time 1.502e-06/0.3773, allocations: 1.375 kB / 394 MB, free: 7.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1165/0.4937, allocations: 10.91 MB / 404.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003586/0.4941, allocations: 213.7 kB / 405.1 MB, free: 14.64 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.207/2.701, allocations: 7.938 kB / 405.1 MB, free: 14.63 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