Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001181/0.001181, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001409/0.001409, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8965/0.8965, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.2e-05/2.363e-05, allocations: 3.125 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002609/0.002632, allocations: 2.091 MB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.00373, allocations: 0.6626 MB / 327.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.003861, allocations: 0 / 327.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003368/0.004198, allocations: 55.61 kB / 327.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.004346, allocations: 43.64 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003534/0.0047, allocations: 135.7 kB / 327.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.004986, allocations: 343.1 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.005139, allocations: 48.52 kB / 327.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002975/0.005436, allocations: 207.5 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.005601, allocations: 127.7 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.939e-05/0.00564, allocations: 32 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.019e-05/0.00567, allocations: 28 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.86e-05/0.005749, allocations: 91.7 kB / 328.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.922e-05/0.005818, allocations: 87.78 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002668/0.006085, allocations: 311 kB / 328.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.006087, allocations: 4 kB / 328.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.006088, allocations: 0 / 328.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.006093, allocations: 4 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007739/0.006867, allocations: 0.5051 MB / 329.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.006909, allocations: 11.98 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.151e-05/0.006961, allocations: 58.73 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.398e-05/0.007014, allocations: 32.8 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.007286, allocations: 194 kB / 329.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.007474, allocations: 351.6 kB / 329.9 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.007513, allocations: 20.38 kB / 329.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.00804, allocations: 374.8 kB / 330.2 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.008056, allocations: 7.953 kB / 330.3 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.008077, allocations: 11.98 kB / 330.3 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.008084, allocations: 7.984 kB / 330.3 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007594/0.008844, allocations: 0.4937 MB / 330.8 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.009956, allocations: 0.8986 MB / 331.7 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006175/0.01057, allocations: 302.4 kB / 332 MB, free: 8.215 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/0.01086, allocations: 172.7 kB / 332.1 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.01089, allocations: 4 kB / 332.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.01091, allocations: 38.56 kB / 332.2 MB, free: 7.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.753e-06/0.01091, allocations: 0 / 332.2 MB, free: 7.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.01336/0.02428, allocations: 5.678 MB / 337.8 MB, free: 2.254 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.02431, allocations: 59.84 kB / 337.9 MB, free: 2.184 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.02448, allocations: 214.3 kB / 338.1 MB, free: 1.965 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.02452, allocations: 29.7 kB / 338.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.269e-05/0.02459, allocations: 157 kB / 338.3 MB, free: 1.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.0247, allocations: 182.4 kB / 338.5 MB, free: 1.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.02484, allocations: 90.34 kB / 338.6 MB, free: 1.496 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.024e-05/0.02493, allocations: 338.8 kB / 338.9 MB, free: 1.156 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007473/0.02568, allocations: 469 kB / 339.4 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007598/0.02644, allocations: 0.5264 MB / 339.9 MB, free: 160 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.02777, allocations: 0.8103 MB / 340.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.02777, allocations: 0 / 340.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001534/0.0293, allocations: 1.005 MB / 341.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.02932, allocations: 7.438 kB / 341.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.02933, allocations: 4.125 kB / 341.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.02934, allocations: 4 kB / 341.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004597/0.0298, allocations: 167.7 kB / 341.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.02981, allocations: 11.92 kB / 341.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.03012, allocations: 83.89 kB / 342 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.03015, allocations: 20 kB / 342 MB, free: 14.03 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001462/0.0303, allocations: 157.7 kB / 342.1 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.868e-05/0.03034, allocations: 31.81 kB / 342.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.752e-05/0.0304, allocations: 51.3 kB / 342.2 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.03041, allocations: 8 kB / 342.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.03042, allocations: 3.938 kB / 342.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.03042, allocations: 0 / 342.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002449/0.03287, allocations: 1.745 MB / 344 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.03287, allocations: 8 kB / 344 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.03319, allocations: 143.8 kB / 344.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.0332, allocations: 12.47 kB / 344.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.03322, allocations: 20 kB / 344.2 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.03323, allocations: 23.86 kB / 344.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.03324, allocations: 19.88 kB / 344.2 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.03481, allocations: 1.216 MB / 345.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/0.03503, allocations: 67.86 kB / 345.5 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/0.03507, allocations: 23.98 kB / 345.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.03533, allocations: 75.86 kB / 345.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.03546, allocations: 87.7 kB / 345.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.03548, allocations: 27.94 kB / 345.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000104/0.03558, allocations: 160.2 kB / 345.8 MB, free: 9.871 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03558, allocations: 0 / 345.8 MB, free: 9.871 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003054/0.03589, allocations: 92 kB / 345.9 MB, free: 9.781 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.001816/0.03771, allocations: 1.796 MB / 347.7 MB, free: 7.852 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.03898, allocations: 0.7944 MB / 348.5 MB, free: 7.055 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.03899, allocations: 4.25 kB / 348.5 MB, free: 7.051 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005311/0.03952, allocations: 325.5 kB / 348.9 MB, free: 6.734 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.03992, allocations: 59.91 kB / 348.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006372/0.0463, allocations: 5.234 MB / 354.1 MB, free: 1.121 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.04643, allocations: 180.2 kB / 354.3 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.04666, allocations: 78.89 kB / 354.4 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.04686, allocations: 92.47 kB / 354.5 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of SimCode: time 9.02e-07/0.04686, allocations: 7.938 kB / 354.5 MB, free: 0.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.06637, allocations: 9.504 MB / 364 MB, free: 7.402 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.891/6.958, allocations: 11.28 kB / 364 MB, free: 7.395 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: 8.644985305145383]