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.001901/0.001901, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002506/0.002506, allocations: 213.2 kB / 23.73 MB, free: 4.164 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.448/1.448, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.001958/0.001958, allocations: 63.89 kB / 377.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2629, allocations: 53.42 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004004/0.267, allocations: 2.3 MB / 433.4 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.2685, allocations: 0.83 MB / 434.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.2687, allocations: 7.938 kB / 434.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002853/0.269, allocations: 55.5 kB / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.2692, allocations: 67.48 kB / 434.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006225/0.2698, allocations: 199.6 kB / 434.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004664/0.2703, allocations: 395.5 kB / 435 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.2705, allocations: 69.55 kB / 435 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.2707, allocations: 175.4 kB / 435.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.271, allocations: 171.2 kB / 435.4 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.083e-05/0.271, allocations: 36 kB / 435.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.267e-05/0.2711, allocations: 36 kB / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.2712, allocations: 115.6 kB / 435.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.2714, allocations: 139.2 kB / 435.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004444/0.2718, allocations: 378.4 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.2718, allocations: 4 kB / 436.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2718, allocations: 0 / 436.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.2718, allocations: 3.938 kB / 436.1 MB, free: 1.5 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.001328/0.2732, allocations: 0.5986 MB / 436.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.2732, allocations: 15.98 kB / 436.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.424e-05/0.2733, allocations: 70.72 kB / 436.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.541e-05/0.2734, allocations: 48.7 kB / 436.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.2738, allocations: 249.4 kB / 437 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003214/0.2741, allocations: 355.9 kB / 437.4 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.205e-05/0.2742, allocations: 24.38 kB / 437.4 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.2755, allocations: 0.586 MB / 438 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.2755, allocations: 0 / 438 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.2756, allocations: 12 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.2756, allocations: 11.94 kB / 438 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.2771, allocations: 0.5152 MB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.2788, allocations: 0.8986 MB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.2803, allocations: 466.6 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000675/0.281, allocations: 239.7 kB / 440.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/0.281, allocations: 11.98 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.281, allocations: 42.42 kB / 440.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.304e-06/0.281, allocations: 0 / 440.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03753/0.3186, allocations: 5.782 MB / 446 MB, free: 7.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.3187, allocations: 149.3 kB / 446.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.319, allocations: 273.8 kB / 446.4 MB, free: 6.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.883e-05/0.3191, allocations: 41.64 kB / 446.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3192, allocations: 149.7 kB / 446.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.3194, allocations: 210.2 kB / 446.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002859/0.3197, allocations: 118.6 kB / 446.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3198, allocations: 346.8 kB / 447.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001712/0.3215, allocations: 0.6227 MB / 447.8 MB, free: 5.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.3234, allocations: 0.7964 MB / 448.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003293/0.3267, allocations: 1.26 MB / 449.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.3267, allocations: 8 kB / 449.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003719/0.3304, allocations: 1.403 MB / 451.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.3304, allocations: 8 kB / 451.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.3304, allocations: 8 kB / 451.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.3305, allocations: 11.98 kB / 451.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.3318, allocations: 215.6 kB / 451.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.944e-05/0.3318, allocations: 15.97 kB / 451.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009744/0.3328, allocations: 100 kB / 451.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.515e-05/0.3329, allocations: 32 kB / 451.7 MB, free: 1.352 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.000358/0.3332, allocations: 189.6 kB / 451.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003397/0.3336, allocations: 165.3 kB / 452 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001887/0.3337, allocations: 67.61 kB / 452.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.3338, allocations: 8 kB / 452.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.3338, allocations: 7.938 kB / 452.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.3338, allocations: 3.984 kB / 452.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005031/0.3388, allocations: 1.98 MB / 454.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/0.3388, allocations: 12 kB / 454.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007617/0.3396, allocations: 184.2 kB / 454.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.028e-05/0.3396, allocations: 15.94 kB / 454.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.108e-05/0.3397, allocations: 28 kB / 454.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.719e-05/0.3397, allocations: 16.12 kB / 454.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/0.3397, allocations: 15.94 kB / 454.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003415/0.3431, allocations: 1.589 MB / 456 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.3434, allocations: 107.6 kB / 456.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.462e-05/0.3434, allocations: 28 kB / 456.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006046/0.344, allocations: 79.97 kB / 456.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.3443, allocations: 95.64 kB / 456.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.147e-05/0.3443, allocations: 36 kB / 456.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.3445, allocations: 189.2 kB / 456.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3445, allocations: 0 / 456.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006441/0.3452, allocations: 128 kB / 456.6 MB, free: 12.09 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.003881/0.349, allocations: 2.161 MB / 458.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003055/0.3521, allocations: 1.041 MB / 459.8 MB, free: 8.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/0.3521, allocations: 4 kB / 459.8 MB, free: 8.719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.3532, allocations: 339.2 kB / 460.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.3542, allocations: 159.3 kB / 460.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/0.3687, allocations: 6.952 MB / 467.3 MB, free: 0.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.369, allocations: 232.6 kB / 467.5 MB, free: 0.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005793/0.3696, allocations: 104.1 kB / 467.6 MB, free: 452 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004201/0.37, allocations: 119.4 kB / 467.7 MB, free: 336 kB / 366.1 MB Notification: Performance of SimCode: time 1.573e-06/0.37, allocations: 0 / 467.7 MB, free: 336 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2833/0.6534, allocations: 13.03 MB / 480.7 MB, free: 3.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/12.18, allocations: 11.38 kB / 480.7 MB, free: 3.465 MB / 382.1 MB " [Timeout remaining time 648] (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/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_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: 14.91839295392856]