Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001683/0.001683, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002008/0.002008, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] 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.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 63.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09758, allocations: 53.32 MB / 426.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003674/0.1013, allocations: 2.405 MB / 429.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.1028, allocations: 0.8728 MB / 429.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.1029, allocations: 7.938 kB / 429.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002668/0.1032, allocations: 59.5 kB / 430 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.1034, allocations: 67.48 kB / 430.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005234/0.1039, allocations: 198.2 kB / 430.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004095/0.1043, allocations: 395.4 kB / 430.6 MB, free: 1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.1045, allocations: 79.5 kB / 430.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002768/0.1048, allocations: 175.4 kB / 430.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.105, allocations: 187.2 kB / 431.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.987e-05/0.1051, allocations: 32 kB / 431.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.992e-05/0.1051, allocations: 36 kB / 431.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.1052, allocations: 107.7 kB / 431.2 MB, free: 400 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.1054, allocations: 163.1 kB / 431.4 MB, free: 236 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.189/0.2944, allocations: 368.9 kB / 431.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.2944, allocations: 0 / 431.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2944, allocations: 0.625 kB / 431.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.2944, allocations: 0 / 431.8 MB, free: 8.332 MB / 350.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.001327/0.2958, allocations: 0.6753 MB / 432.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.2958, allocations: 9.719 kB / 432.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.523e-05/0.2959, allocations: 71.94 kB / 432.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.17e-05/0.296, allocations: 45.67 kB / 432.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004459/0.2964, allocations: 313.7 kB / 432.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001758/0.2966, allocations: 136.4 kB / 433 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.721e-05/0.2966, allocations: 32.66 kB / 433 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.2977, allocations: 0.5673 MB / 433.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.2977, allocations: 4.062 kB / 433.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.095e-05/0.2977, allocations: 10.31 kB / 433.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2977, allocations: 6.688 kB / 433.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.2988, allocations: 0.5136 MB / 434.1 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.3001, allocations: 1.031 MB / 435.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/0.3015, allocations: 481.7 kB / 435.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005455/0.302, allocations: 231.7 kB / 435.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.337e-05/0.302, allocations: 16.42 kB / 435.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.3021, allocations: 43.78 kB / 435.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.754e-06/0.3021, allocations: 0 / 435.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03664/0.3387, allocations: 5.764 MB / 441.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.3388, allocations: 154 kB / 441.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002607/0.339, allocations: 257.4 kB / 442.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.71e-05/0.3391, allocations: 37.05 kB / 442.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.125e-05/0.3392, allocations: 151.3 kB / 442.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.3393, allocations: 201.3 kB / 442.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002609/0.3396, allocations: 115.2 kB / 442.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.025e-05/0.3397, allocations: 348.6 kB / 442.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/0.3411, allocations: 0.6164 MB / 443.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.3425, allocations: 0.7999 MB / 444.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/0.3451, allocations: 1.245 MB / 445.6 MB, free: 3.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3451, allocations: 1.062 kB / 445.6 MB, free: 3.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003194/0.3483, allocations: 1.403 MB / 447 MB, free: 3.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3483, allocations: 7.75 kB / 447 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.3483, allocations: 6.422 kB / 447 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.3484, allocations: 10.23 kB / 447 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.3497, allocations: 209.8 kB / 447.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.3497, allocations: 13.86 kB / 447.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008885/0.3506, allocations: 103.8 kB / 447.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.3506, allocations: 26.03 kB / 447.4 MB, free: 3.297 MB / 350.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.0002829/0.3509, allocations: 194.2 kB / 447.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002666/0.3512, allocations: 171.1 kB / 447.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.3513, allocations: 68.53 kB / 447.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3513, allocations: 6.875 kB / 447.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.3514, allocations: 1.375 kB / 447.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3514, allocations: 4.281 kB / 447.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004027/0.3554, allocations: 2.189 MB / 450 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.3554, allocations: 10.62 kB / 450 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006984/0.3561, allocations: 184.7 kB / 450.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.407e-05/0.3561, allocations: 14.62 kB / 450.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.3562, allocations: 24.94 kB / 450.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.708e-05/0.3562, allocations: 23.86 kB / 450.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.239e-05/0.3562, allocations: 15.48 kB / 450.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.3588, allocations: 1.572 MB / 451.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.3589, allocations: 176.8 kB / 452 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.926e-05/0.359, allocations: 27.55 kB / 452 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/0.3595, allocations: 83.94 kB / 452.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.3597, allocations: 91.36 kB / 452.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.3597, allocations: 32.44 kB / 452.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.3599, allocations: 185.2 kB / 452.4 MB, free: 376 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3599, allocations: 0 / 452.4 MB, free: 376 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006392/0.3605, allocations: 124.2 kB / 452.5 MB, free: 356 kB / 350.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.003151/0.3637, allocations: 2.134 MB / 454.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002551/0.3662, allocations: 1.032 MB / 455.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.3662, allocations: 3.219 kB / 455.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008627/0.3671, allocations: 330 kB / 456 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008863/0.368, allocations: 147.3 kB / 456.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/0.3803, allocations: 6.92 MB / 463.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/0.3808, allocations: 0.8264 MB / 463.9 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005254/0.3813, allocations: 99.38 kB / 464 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000356/0.3817, allocations: 121.5 kB / 464.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3817, allocations: 0 / 464.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03666/0.4183, allocations: 11.7 MB / 475.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/8.494, allocations: 11.91 kB / 475.8 MB, free: 14.28 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.990294551942497]