Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001802/0.001802, 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.001808/0.001808, allocations: 213.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.561/1.561, allocations: 230.6 MB / 257.5 MB, free: 8.035 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.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 47.92 kB / 377.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.332, allocations: 53.36 MB / 431.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004106/0.3361, allocations: 2.37 MB / 433.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.3378, allocations: 0.8221 MB / 434.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.338, allocations: 7.938 kB / 434.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003714/0.3384, allocations: 51.58 kB / 434.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.3386, allocations: 63.55 kB / 434.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005775/0.3392, allocations: 171.6 kB / 434.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005434/0.3398, allocations: 375.6 kB / 435 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.34, allocations: 67.61 kB / 435 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003883/0.3404, allocations: 171.5 kB / 435.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003168/0.3407, allocations: 175.3 kB / 435.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.035e-05/0.3407, allocations: 36 kB / 435.4 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.819e-05/0.3408, allocations: 32 kB / 435.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.3409, allocations: 103.6 kB / 435.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.3411, allocations: 135.3 kB / 435.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004958/0.3416, allocations: 324.5 kB / 436 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.3416, allocations: 4 kB / 436 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3416, allocations: 0 / 436 MB, free: 2.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.3416, allocations: 0 / 436 MB, free: 2.023 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001379/0.343, allocations: 0.5483 MB / 436.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3431, allocations: 8.031 kB / 436.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.164e-05/0.3431, allocations: 70.72 kB / 436.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.729e-05/0.3432, allocations: 36.75 kB / 436.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004906/0.3437, allocations: 212.1 kB / 436.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003423/0.3441, allocations: 359.9 kB / 437.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.347e-05/0.3441, allocations: 28.33 kB / 437.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.3453, allocations: 0.5461 MB / 437.8 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.3454, allocations: 0 / 437.8 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.523e-05/0.3454, allocations: 12 kB / 437.8 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.3454, allocations: 8 kB / 437.8 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.3468, allocations: 0.5074 MB / 438.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.3486, allocations: 0.9567 MB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.3502, allocations: 482.5 kB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006195/0.3508, allocations: 229.1 kB / 440 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.687e-05/0.3509, allocations: 15.92 kB / 440 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.3509, allocations: 42.5 kB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.894e-06/0.3509, allocations: 0 / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03883/0.3897, allocations: 5.722 MB / 445.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/0.3899, allocations: 148.9 kB / 445.9 MB, free: 7.809 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.3902, allocations: 192.1 kB / 446.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.362e-05/0.3903, allocations: 41.7 kB / 446.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.3904, allocations: 141.8 kB / 446.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.3906, allocations: 206.3 kB / 446.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.3909, allocations: 114.6 kB / 446.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.3911, allocations: 338.8 kB / 446.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.3928, allocations: 0.6149 MB / 447.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001835/0.3946, allocations: 0.808 MB / 448.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003125/0.3977, allocations: 1.244 MB / 449.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.3977, allocations: 7.938 kB / 449.6 MB, free: 3.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003723/0.4015, allocations: 1.394 MB / 451 MB, free: 2.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.4015, allocations: 8 kB / 451 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.4015, allocations: 11.98 kB / 451 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.718e-05/0.4015, allocations: 8 kB / 451 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.4029, allocations: 207.7 kB / 451.2 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.17e-05/0.4029, allocations: 16.25 kB / 451.2 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009736/0.4039, allocations: 107.7 kB / 451.3 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-05/0.404, allocations: 24 kB / 451.3 MB, free: 2.156 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.0003408/0.4043, allocations: 181.6 kB / 451.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000336/0.4046, allocations: 165.3 kB / 451.7 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001916/0.4048, allocations: 59.3 kB / 451.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.4048, allocations: 8 kB / 451.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.4049, allocations: 0 / 451.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.4049, allocations: 7.984 kB / 451.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005014/0.4099, allocations: 2.136 MB / 453.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.665e-05/0.4099, allocations: 12.97 kB / 453.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007702/0.4107, allocations: 187.8 kB / 454.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-05/0.4107, allocations: 15.94 kB / 454.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.121e-05/0.4107, allocations: 24 kB / 454.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.067e-05/0.4107, allocations: 19.92 kB / 454.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/0.4108, allocations: 19.88 kB / 454.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003315/0.4141, allocations: 1.545 MB / 455.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002697/0.4143, allocations: 95.69 kB / 455.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.173e-05/0.4144, allocations: 24 kB / 455.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006189/0.415, allocations: 79.91 kB / 455.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.4153, allocations: 99.7 kB / 456 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.523e-05/0.4153, allocations: 31.94 kB / 456 MB, free: 13.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001777/0.4155, allocations: 143.5 kB / 456.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4155, allocations: 0 / 456.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007222/0.4162, allocations: 124 kB / 456.3 MB, free: 12.86 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.00371/0.4199, allocations: 2.121 MB / 458.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002896/0.4228, allocations: 1.029 MB / 459.4 MB, free: 9.539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.4228, allocations: 0 / 459.4 MB, free: 9.539 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009987/0.4238, allocations: 327.3 kB / 459.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009336/0.4248, allocations: 143.5 kB / 459.9 MB, free: 9.082 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.4392, allocations: 6.784 MB / 466.7 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006242/0.4398, allocations: 0.8128 MB / 467.5 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000529/0.4404, allocations: 95.31 kB / 467.6 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/0.4408, allocations: 115.4 kB / 467.7 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4408, allocations: 0 / 467.7 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04651/0.4873, allocations: 11.97 MB / 479.7 MB, free: 4.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.89, allocations: 7.688 kB / 479.7 MB, free: 4.926 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.72235516179353]