Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 110.6 kB / 16.62 MB, free: 6.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 190 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 50.97 kB / 300.2 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1031, allocations: 49.44 MB / 349.7 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00368/0.1068, allocations: 2.424 MB / 352.1 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1082, allocations: 0.8144 MB / 352.9 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.1084, allocations: 11.94 kB / 352.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002764/0.1087, allocations: 47.67 kB / 353 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.1089, allocations: 51.69 kB / 353 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005226/0.1094, allocations: 186.5 kB / 353.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003736/0.1098, allocations: 387.5 kB / 353.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.11, allocations: 99.5 kB / 353.7 MB, free: 436 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.1102, allocations: 167.4 kB / 353.8 MB, free: 268 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.1104, allocations: 183.2 kB / 354 MB, free: 84 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.177e-05/0.1105, allocations: 36 kB / 354.1 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.866e-05/0.1105, allocations: 36 kB / 354.1 MB, free: 12 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.1107, allocations: 103.7 kB / 354.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.1108, allocations: 175 kB / 354.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003281/0.1112, allocations: 359 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1112, allocations: 0 / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1112, allocations: 4 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.1112, allocations: 0 / 354.7 MB, free: 15.38 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001165/0.1124, allocations: 0.6704 MB / 355.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.1124, allocations: 8.031 kB / 355.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.703e-05/0.1125, allocations: 74.72 kB / 355.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.365e-05/0.1126, allocations: 44.47 kB / 355.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.1129, allocations: 299.1 kB / 355.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002049/0.1131, allocations: 146.3 kB / 355.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.574e-05/0.1132, allocations: 28.38 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.1145, allocations: 0.5814 MB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.1146, allocations: 0 / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.83e-05/0.1146, allocations: 12 kB / 356.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1147, allocations: 11.94 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.1166, allocations: 0.5035 MB / 357.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1187, allocations: 1.026 MB / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002119/0.1209, allocations: 0.4946 MB / 358.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008492/0.1217, allocations: 263.4 kB / 358.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.859e-05/0.1218, allocations: 8.141 kB / 358.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.317e-05/0.1219, allocations: 46.48 kB / 358.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.606e-06/0.1219, allocations: 0 / 358.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.05073/0.1726, allocations: 5.747 MB / 364.7 MB, free: 5.145 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/0.1728, allocations: 152.9 kB / 364.8 MB, free: 4.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004182/0.1733, allocations: 262.5 kB / 365.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001214/0.1734, allocations: 33.7 kB / 365.1 MB, free: 4.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.1736, allocations: 149.5 kB / 365.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.1738, allocations: 193.3 kB / 365.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004246/0.1743, allocations: 114.6 kB / 365.5 MB, free: 4.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1745, allocations: 346.8 kB / 365.9 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002326/0.1768, allocations: 0.6188 MB / 366.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002308/0.1791, allocations: 0.7963 MB / 367.3 MB, free: 2.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003798/0.1829, allocations: 1.251 MB / 368.6 MB, free: 1.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.183, allocations: 0 / 368.6 MB, free: 1.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.2128/0.3958, allocations: 1.389 MB / 369.9 MB, free: 26.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/0.3958, allocations: 10.95 kB / 370 MB, free: 26.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/0.3959, allocations: 5.656 kB / 370 MB, free: 26.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.195e-05/0.3959, allocations: 10.41 kB / 370 MB, free: 26.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/0.3973, allocations: 211.5 kB / 370.2 MB, free: 26.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.1e-05/0.3974, allocations: 14.08 kB / 370.2 MB, free: 26.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009915/0.3984, allocations: 101 kB / 370.3 MB, free: 26.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-05/0.3985, allocations: 29.58 kB / 370.3 MB, free: 26.5 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.0003433/0.3988, allocations: 194 kB / 370.5 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000343/0.3992, allocations: 160.3 kB / 370.7 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.3994, allocations: 68.73 kB / 370.7 MB, free: 26.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.3994, allocations: 7.844 kB / 370.7 MB, free: 26.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.3994, allocations: 0.7812 kB / 370.7 MB, free: 26.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.3994, allocations: 5.359 kB / 370.7 MB, free: 26.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004858/0.4043, allocations: 2.188 MB / 372.9 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.029e-05/0.4043, allocations: 10.69 kB / 372.9 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008323/0.4052, allocations: 187.6 kB / 373.1 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.48e-05/0.4052, allocations: 13.03 kB / 373.1 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.056e-05/0.4053, allocations: 25 kB / 373.2 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.078e-05/0.4053, allocations: 20.39 kB / 373.2 MB, free: 25.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-05/0.4053, allocations: 19.25 kB / 373.2 MB, free: 25.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002892/0.4082, allocations: 1.563 MB / 374.8 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.4084, allocations: 182.9 kB / 374.9 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-05/0.4085, allocations: 31.08 kB / 375 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005776/0.4091, allocations: 79 kB / 375.1 MB, free: 24.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.4093, allocations: 101.3 kB / 375.1 MB, free: 24.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.158e-05/0.4094, allocations: 30.06 kB / 375.2 MB, free: 24.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001879/0.4096, allocations: 186.7 kB / 375.4 MB, free: 23.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4096, allocations: 0 / 375.4 MB, free: 23.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006974/0.4103, allocations: 128.7 kB / 375.5 MB, free: 23.93 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.003115/0.4134, allocations: 2.123 MB / 377.6 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002812/0.4163, allocations: 1.157 MB / 378.8 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/0.4163, allocations: 1.469 kB / 378.8 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.4173, allocations: 340.8 kB / 379.1 MB, free: 21.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.4184, allocations: 146.9 kB / 379.2 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/0.4323, allocations: 7.065 MB / 386.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.4327, allocations: 0.8332 MB / 387.1 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007075/0.4334, allocations: 93.91 kB / 387.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.4338, allocations: 123.4 kB / 387.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of SimCode: time 1.163e-06/0.4339, allocations: 0 / 387.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05232/0.4862, allocations: 11.32 MB / 398.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/0.4864, allocations: 222.8 kB / 398.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.699, allocations: 64 / 398.9 MB, free: 8.621 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches