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.001244/0.001244, allocations: 91.36 kB / 16.65 MB, free: 6.234 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.001308/0.001308, allocations: 177.5 kB / 17.56 MB, free: 5.848 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.67/1.67, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003628, allocations: 8.188 kB / 301.5 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1384, allocations: 50.41 MB / 351.9 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003687/0.1421, allocations: 2.053 MB / 354 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.1443, allocations: 0.8144 MB / 354.8 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004086/0.1447, allocations: 7.938 kB / 354.8 MB, free: 492 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004086/0.1452, allocations: 39.77 kB / 354.8 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004023/0.1456, allocations: 51.69 kB / 354.9 MB, free: 400 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008351/0.1464, allocations: 183.6 kB / 355.1 MB, free: 216 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006685/0.1471, allocations: 371.5 kB / 355.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/0.1474, allocations: 103.4 kB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/0.1478, allocations: 127.5 kB / 355.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.1481, allocations: 163.2 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.669e-05/0.1482, allocations: 16 kB / 355.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.958e-05/0.1483, allocations: 20 kB / 355.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.1484, allocations: 87.7 kB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.1486, allocations: 168.8 kB / 356.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.149, allocations: 342.9 kB / 356.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.149, allocations: 0 / 356.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.149, allocations: 4 kB / 356.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.149, allocations: 0 / 356.4 MB, free: 14.83 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.001344/0.1504, allocations: 0.6238 MB / 357.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.1505, allocations: 8.031 kB / 357.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001562/0.1506, allocations: 74.72 kB / 357.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.1507, allocations: 44.47 kB / 357.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.1512, allocations: 307.1 kB / 357.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000233/0.1514, allocations: 146.2 kB / 357.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-05/0.1515, allocations: 28.38 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.153, allocations: 0.5854 MB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/0.153, allocations: 0 / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.108e-05/0.1531, allocations: 12 kB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.1531, allocations: 8 kB / 358.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.1547, allocations: 0.5308 MB / 358.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.1565, allocations: 1.041 MB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.1583, allocations: 0.518 MB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006974/0.159, allocations: 271.4 kB / 360.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.19e-05/0.159, allocations: 4 kB / 360.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.377e-05/0.1591, allocations: 46.48 kB / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.444e-06/0.1591, allocations: 0 / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04238/0.2015, allocations: 6.803 MB / 367.5 MB, free: 3.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.2017, allocations: 145 kB / 367.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/0.2021, allocations: 262.5 kB / 367.9 MB, free: 3.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.2023, allocations: 37.7 kB / 367.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.2024, allocations: 145.5 kB / 368.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.2027, allocations: 193.3 kB / 368.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.2029, allocations: 61.69 kB / 368.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.203, allocations: 342.8 kB / 368.6 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001801/0.2049, allocations: 0.6539 MB / 369.3 MB, free: 1.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001954/0.2068, allocations: 0.8354 MB / 370.1 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2412/0.448, allocations: 1.323 MB / 371.5 MB, free: 24.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/0.4481, allocations: 1.562 kB / 371.5 MB, free: 24.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003971/0.452, allocations: 1.47 MB / 372.9 MB, free: 24.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.4521, allocations: 12.11 kB / 372.9 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.4521, allocations: 5.875 kB / 372.9 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.862e-05/0.4522, allocations: 9.344 kB / 373 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.4536, allocations: 233 kB / 373.2 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.353e-05/0.4536, allocations: 14.14 kB / 373.2 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.4546, allocations: 124.1 kB / 373.3 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.555e-05/0.4547, allocations: 30.88 kB / 373.3 MB, free: 24.37 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.0003301/0.4551, allocations: 192.7 kB / 373.5 MB, free: 24.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/0.4554, allocations: 161.9 kB / 373.7 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002242/0.4556, allocations: 67.91 kB / 373.8 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.4557, allocations: 9 kB / 373.8 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.4557, allocations: 1.156 kB / 373.8 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4557, allocations: 4.625 kB / 373.8 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005138/0.4608, allocations: 2.309 MB / 376.1 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/0.4609, allocations: 10.09 kB / 376.1 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008104/0.4617, allocations: 204.8 kB / 376.3 MB, free: 23.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-05/0.4617, allocations: 13.12 kB / 376.3 MB, free: 23.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.693e-05/0.4618, allocations: 28.44 kB / 376.3 MB, free: 23.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.211e-05/0.4618, allocations: 24.19 kB / 376.4 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.338e-05/0.4618, allocations: 15.38 kB / 376.4 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003386/0.4652, allocations: 1.677 MB / 378 MB, free: 22.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002568/0.4655, allocations: 183.7 kB / 378.2 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.395e-05/0.4656, allocations: 34.48 kB / 378.3 MB, free: 22.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000639/0.4662, allocations: 96.75 kB / 378.4 MB, free: 22.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.4664, allocations: 94.89 kB / 378.4 MB, free: 22.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/0.4665, allocations: 31.11 kB / 378.5 MB, free: 22.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002109/0.4667, allocations: 189.1 kB / 378.7 MB, free: 22.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4667, allocations: 0 / 378.7 MB, free: 22.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007626/0.4675, allocations: 123.9 kB / 378.8 MB, free: 22 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.003702/0.4712, allocations: 2.25 MB / 381 MB, free: 20.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003214/0.4744, allocations: 1.192 MB / 382.2 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.4745, allocations: 2.062 kB / 382.2 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.4756, allocations: 382.4 kB / 382.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.4768, allocations: 152.6 kB / 382.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.4918, allocations: 7.298 MB / 390 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.4921, allocations: 0.8351 MB / 390.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006059/0.4928, allocations: 93.31 kB / 391 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003683/0.4931, allocations: 119.5 kB / 391.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4931, allocations: 5.375 kB / 391.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.5148, allocations: 10.72 MB / 401.8 MB, free: 5.699 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/0.515, allocations: 215.8 kB / 402 MB, free: 5.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.418/2.933, allocations: 0 / 402 MB, free: 5.445 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