Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001516/0.001516, allocations: 115.6 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.002443/0.002443, allocations: 212.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.627/1.627, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 51.91 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3355, allocations: 53.37 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.005108/0.3406, allocations: 2.39 MB / 433.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.343, allocations: 0.8455 MB / 434.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003915/0.3434, allocations: 11.88 kB / 434.4 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004949/0.3438, allocations: 55.55 kB / 434.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004313/0.3443, allocations: 63.56 kB / 434.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007035/0.345, allocations: 179 kB / 434.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000607/0.3456, allocations: 383.5 kB / 435 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.3458, allocations: 80.28 kB / 435.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004778/0.3463, allocations: 159.5 kB / 435.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004229/0.3467, allocations: 191.2 kB / 435.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.17e-05/0.3468, allocations: 40 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.634e-05/0.3469, allocations: 32 kB / 435.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.347, allocations: 103.7 kB / 435.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.3472, allocations: 143.2 kB / 435.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005712/0.3478, allocations: 339 kB / 436.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3478, allocations: 0 / 436.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3478, allocations: 0 / 436.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.776e-05/0.3478, allocations: 0 / 436.1 MB, free: 1.887 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001596/0.3494, allocations: 0.5522 MB / 436.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.3494, allocations: 8.031 kB / 436.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.3496, allocations: 74.72 kB / 436.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.331e-05/0.3496, allocations: 44.7 kB / 436.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005142/0.3502, allocations: 210.5 kB / 437 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003862/0.3505, allocations: 347.9 kB / 437.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.865e-05/0.3506, allocations: 28.38 kB / 437.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.3519, allocations: 0.5659 MB / 437.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.3519, allocations: 11.94 kB / 437.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.352, allocations: 12 kB / 437.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.352, allocations: 8 kB / 437.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.3534, allocations: 0.5042 MB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.3551, allocations: 0.9491 MB / 439.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.3568, allocations: 485.1 kB / 439.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006349/0.3574, allocations: 239.4 kB / 440.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.573e-05/0.3575, allocations: 20.12 kB / 440.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.3575, allocations: 34.56 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.653e-06/0.3575, allocations: 4 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04002/0.3975, allocations: 5.731 MB / 445.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.3977, allocations: 152.9 kB / 446 MB, free: 7.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.3979, allocations: 200.3 kB / 446.2 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.814e-05/0.398, allocations: 37.7 kB / 446.3 MB, free: 7.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.3981, allocations: 142.1 kB / 446.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002505/0.3983, allocations: 202.3 kB / 446.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.3987, allocations: 110.6 kB / 446.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.3989, allocations: 350.8 kB / 447.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001734/0.4006, allocations: 0.6148 MB / 447.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.4025, allocations: 0.7964 MB / 448.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003252/0.4057, allocations: 1.251 MB / 449.7 MB, free: 3.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.4057, allocations: 4 kB / 449.7 MB, free: 3.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003867/0.4096, allocations: 1.398 MB / 451.1 MB, free: 2.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.4096, allocations: 8 kB / 451.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.4096, allocations: 4 kB / 451.1 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.637e-05/0.4097, allocations: 12 kB / 451.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.411, allocations: 207.6 kB / 451.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.031e-05/0.411, allocations: 15.92 kB / 451.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009212/0.412, allocations: 103.8 kB / 451.5 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.786e-05/0.412, allocations: 28 kB / 451.5 MB, free: 1.961 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.0003539/0.4124, allocations: 177.6 kB / 451.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003267/0.4127, allocations: 153.4 kB / 451.8 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001816/0.4129, allocations: 63.3 kB / 451.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.4129, allocations: 8 kB / 451.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.4129, allocations: 0 / 451.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.4129, allocations: 11.98 kB / 451.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005205/0.4181, allocations: 2.136 MB / 454 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.4181, allocations: 8 kB / 454 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007997/0.4189, allocations: 183.7 kB / 454.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.692e-05/0.419, allocations: 12 kB / 454.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.938e-05/0.419, allocations: 28.38 kB / 454.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.123e-05/0.419, allocations: 23.92 kB / 454.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.367e-05/0.4191, allocations: 15.94 kB / 454.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003432/0.4225, allocations: 1.557 MB / 455.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002047/0.4227, allocations: 91.83 kB / 456 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.184e-05/0.4228, allocations: 32.05 kB / 456 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005852/0.4234, allocations: 75.86 kB / 456.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.4236, allocations: 95.64 kB / 456.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.281e-05/0.4236, allocations: 32 kB / 456.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001558/0.4238, allocations: 136.1 kB / 456.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4238, allocations: 0 / 456.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006826/0.4245, allocations: 131.9 kB / 456.4 MB, free: 12.68 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.003804/0.4283, allocations: 2.129 MB / 458.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.4311, allocations: 1.027 MB / 459.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4311, allocations: 0 / 459.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.4322, allocations: 326 kB / 459.9 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009363/0.4331, allocations: 148.2 kB / 460.1 MB, free: 8.898 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/0.4472, allocations: 6.777 MB / 466.8 MB, free: 1.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005738/0.4478, allocations: 0.8132 MB / 467.7 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005249/0.4483, allocations: 95.31 kB / 467.7 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004086/0.4487, allocations: 127.4 kB / 467.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4487, allocations: 0 / 467.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04718/0.4959, allocations: 12.04 MB / 479.9 MB, free: 4.672 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.97, allocations: 11.61 kB / 479.9 MB, free: 4.664 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.793489980045706]