Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 103.5 kB / 20.43 MB, free: 1.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 193.2 kB / 23.71 MB, free: 4.426 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 43.94 kB / 370.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2599, allocations: 52.18 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00333/0.2632, allocations: 2.069 MB / 424.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.2643, allocations: 0.6159 MB / 425.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.2644, allocations: 4 kB / 425.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002592/0.2647, allocations: 51.62 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.2648, allocations: 51.56 kB / 425.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003453/0.2652, allocations: 127.8 kB / 425.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003802/0.2656, allocations: 343.2 kB / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.2657, allocations: 50.23 kB / 425.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.2659, allocations: 135.6 kB / 426 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.2661, allocations: 147.4 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.2662, allocations: 32 kB / 426.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.195e-05/0.2662, allocations: 32 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.2663, allocations: 91.72 kB / 426.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.2665, allocations: 103.6 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003458/0.2668, allocations: 298.8 kB / 426.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2668, allocations: 0 / 426.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2668, allocations: 4 kB / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2668, allocations: 0 / 426.7 MB, free: 10.27 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001132/0.2679, allocations: 0.5051 MB / 427.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.268, allocations: 8.031 kB / 427.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.186e-05/0.2681, allocations: 62.72 kB / 427.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.093e-05/0.2681, allocations: 36.75 kB / 427.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.2685, allocations: 196.6 kB / 427.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000316/0.2688, allocations: 343.5 kB / 427.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.652e-05/0.2689, allocations: 24 kB / 427.8 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009039/0.2698, allocations: 374.6 kB / 428.2 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.2698, allocations: 0 / 428.2 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.2698, allocations: 12 kB / 428.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2698, allocations: 7.938 kB / 428.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.2712, allocations: 0.4937 MB / 428.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.273, allocations: 0.8912 MB / 429.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.274, allocations: 312.3 kB / 429.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000541/0.2746, allocations: 168.7 kB / 430.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.2746, allocations: 4 kB / 430.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.2746, allocations: 42.56 kB / 430.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.2746, allocations: 0 / 430.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.02643/0.3011, allocations: 5.675 MB / 435.8 MB, free: 0.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.3011, allocations: 55.84 kB / 435.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.3014, allocations: 214.3 kB / 436.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.3014, allocations: 37.64 kB / 436.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3016, allocations: 152.9 kB / 436.2 MB, free: 404 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.3017, allocations: 190.4 kB / 436.4 MB, free: 212 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/0.3019, allocations: 94.3 kB / 436.5 MB, free: 112 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.3021, allocations: 338.8 kB / 436.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.3035, allocations: 469 kB / 437.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.3049, allocations: 0.5264 MB / 437.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002509/0.3074, allocations: 0.8101 MB / 438.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3074, allocations: 0 / 438.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002876/0.3103, allocations: 1.001 MB / 439.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.3103, allocations: 4 kB / 439.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3103, allocations: 7.922 kB / 439.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.3103, allocations: 8.125 kB / 439.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009643/0.3113, allocations: 167.8 kB / 439.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.3113, allocations: 7.938 kB / 439.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006711/0.312, allocations: 87.89 kB / 439.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.312, allocations: 23.98 kB / 440 MB, free: 12.64 MB / 350.1 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.0002281/0.3123, allocations: 153.8 kB / 440.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.157e-05/0.3124, allocations: 23.86 kB / 440.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.3125, allocations: 55.23 kB / 440.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.3125, allocations: 8 kB / 440.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3125, allocations: 0 / 440.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.3125, allocations: 7.922 kB / 440.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0042/0.3167, allocations: 1.741 MB / 441.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.3167, allocations: 8 kB / 441.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000634/0.3173, allocations: 143.8 kB / 442.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.235e-05/0.3174, allocations: 12 kB / 442.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.669e-05/0.3174, allocations: 23.94 kB / 442.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-05/0.3174, allocations: 16.27 kB / 442.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.244e-05/0.3174, allocations: 19.94 kB / 442.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002987/0.3204, allocations: 1.234 MB / 443.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.3206, allocations: 75.73 kB / 443.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.215e-05/0.3207, allocations: 20 kB / 443.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005292/0.3212, allocations: 79.84 kB / 443.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.3214, allocations: 91.73 kB / 443.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.3214, allocations: 24 kB / 443.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.3216, allocations: 152.8 kB / 443.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3216, allocations: 0 / 443.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004647/0.3221, allocations: 96 kB / 443.9 MB, free: 8.375 MB / 350.1 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.003284/0.3253, allocations: 1.821 MB / 445.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.3277, allocations: 0.7902 MB / 446.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3277, allocations: 4 kB / 446.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009766/0.3287, allocations: 325.8 kB / 446.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006004/0.3293, allocations: 62.28 kB / 446.9 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3403, allocations: 5.292 MB / 452.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.3405, allocations: 172.2 kB / 452.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004026/0.3409, allocations: 78.88 kB / 452.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.3411, allocations: 99.41 kB / 452.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3411, allocations: 0 / 452.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04011/0.3813, allocations: 9.416 MB / 462 MB, free: 6.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.1, allocations: 7.797 kB / 462 MB, free: 6.07 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 13.467582506127656]