Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002201/0.002201, allocations: 215.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.578/1.578, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 47.92 kB / 377.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3574, allocations: 53.37 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004585/0.3619, allocations: 2.425 MB / 433.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.3638, allocations: 0.8806 MB / 434.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002769/0.3641, allocations: 11.88 kB / 434.4 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000317/0.3644, allocations: 59.5 kB / 434.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.3647, allocations: 67.48 kB / 434.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006793/0.3654, allocations: 202.7 kB / 434.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005125/0.3659, allocations: 391.5 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.3661, allocations: 73.55 kB / 435.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003834/0.3665, allocations: 187.4 kB / 435.4 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003188/0.3668, allocations: 183.2 kB / 435.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.587e-05/0.3668, allocations: 36 kB / 435.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.156e-05/0.3669, allocations: 35.94 kB / 435.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.367, allocations: 111.6 kB / 435.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.3672, allocations: 159.1 kB / 435.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000547/0.3678, allocations: 378.3 kB / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3678, allocations: 0 / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3678, allocations: 0 / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.3678, allocations: 0 / 436.3 MB, free: 1.656 MB / 334.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.00142/0.3692, allocations: 0.6025 MB / 436.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.3693, allocations: 12.03 kB / 436.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.3694, allocations: 70.72 kB / 437 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.3695, allocations: 44.7 kB / 437 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005705/0.3701, allocations: 257.3 kB / 437.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003749/0.3704, allocations: 347.9 kB / 437.6 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/0.3705, allocations: 32.38 kB / 437.6 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.3719, allocations: 0.5699 MB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.3719, allocations: 4 kB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.711e-05/0.3719, allocations: 8 kB / 438.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.372, allocations: 8 kB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.3734, allocations: 0.5112 MB / 438.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.3751, allocations: 0.9648 MB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.3768, allocations: 478.5 kB / 440.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006198/0.3774, allocations: 231.3 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.118e-05/0.3775, allocations: 20.06 kB / 440.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.3775, allocations: 38.56 kB / 440.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.204e-06/0.3775, allocations: 4 kB / 440.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04079/0.4183, allocations: 5.772 MB / 446.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/0.4185, allocations: 152.9 kB / 446.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003759/0.4188, allocations: 253.9 kB / 446.6 MB, free: 6.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001119/0.419, allocations: 38.08 kB / 446.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.4191, allocations: 157.7 kB / 446.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/0.4194, allocations: 198.3 kB / 447 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003381/0.4197, allocations: 114.6 kB / 447.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.4199, allocations: 350.7 kB / 447.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001629/0.4215, allocations: 0.6226 MB / 448.1 MB, free: 5.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/0.4234, allocations: 0.7964 MB / 448.9 MB, free: 4.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003253/0.4267, allocations: 1.247 MB / 450.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.4267, allocations: 4 kB / 450.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003749/0.4304, allocations: 1.398 MB / 451.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.4305, allocations: 8 kB / 451.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.4305, allocations: 4 kB / 451.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.4305, allocations: 8 kB / 451.5 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.4319, allocations: 215.7 kB / 451.8 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.636e-05/0.432, allocations: 15.98 kB / 451.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.433, allocations: 91.84 kB / 451.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.049e-05/0.4331, allocations: 31.98 kB / 451.9 MB, free: 1.52 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.0003622/0.4334, allocations: 189.6 kB / 452.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003559/0.4338, allocations: 169.3 kB / 452.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.434, allocations: 67.84 kB / 452.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.434, allocations: 8 kB / 452.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.434, allocations: 0 / 452.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.434, allocations: 11.97 kB / 452.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005377/0.4394, allocations: 2.151 MB / 454.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.24e-05/0.4394, allocations: 12 kB / 454.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008243/0.4402, allocations: 188.6 kB / 454.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.979e-05/0.4403, allocations: 12 kB / 454.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-05/0.4403, allocations: 27.98 kB / 454.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.408e-05/0.4403, allocations: 19.94 kB / 454.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.4404, allocations: 11.94 kB / 454.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003413/0.4438, allocations: 1.569 MB / 456.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.4441, allocations: 107.6 kB / 456.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.169e-05/0.4441, allocations: 31.92 kB / 456.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006204/0.4448, allocations: 71.92 kB / 456.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.445, allocations: 103.7 kB / 456.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.938e-05/0.445, allocations: 28 kB / 456.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002024/0.4452, allocations: 185.2 kB / 456.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4452, allocations: 0 / 456.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007086/0.4459, allocations: 127.9 kB / 457 MB, free: 12.11 MB / 366.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.003839/0.4498, allocations: 2.141 MB / 459.1 MB, free: 9.812 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003042/0.4528, allocations: 1.029 MB / 460.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.638e-05/0.4528, allocations: 4 kB / 460.1 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.4539, allocations: 331.2 kB / 460.4 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.4549, allocations: 146.5 kB / 460.6 MB, free: 8.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.4692, allocations: 6.917 MB / 467.5 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005231/0.4697, allocations: 0.8284 MB / 468.3 MB, free: 44 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005128/0.4702, allocations: 96.09 kB / 468.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004009/0.4706, allocations: 123.4 kB / 468.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4706, allocations: 0 / 468.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05157/0.5222, allocations: 12.39 MB / 480.9 MB, free: 3.594 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.9, allocations: 3.875 kB / 480.9 MB, free: 3.594 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 15.770005619851872]