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.001414/0.001414, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001513/0.001513, allocations: 194.2 kB / 23.71 MB, free: 4.406 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.42/1.42, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001719/0.001719, allocations: 47.92 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2595, allocations: 52.19 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003515/0.263, allocations: 2.065 MB / 424.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2641, allocations: 0.616 MB / 425.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.2642, allocations: 4 kB / 425.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.2645, allocations: 43.64 kB / 425.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.2646, allocations: 63.55 kB / 425.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003574/0.265, allocations: 123.8 kB / 425.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003921/0.2654, allocations: 343.2 kB / 425.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.2655, allocations: 49.05 kB / 425.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.2658, allocations: 139.5 kB / 426 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.266, allocations: 147.4 kB / 426.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.356e-05/0.266, allocations: 36 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.097e-05/0.2661, allocations: 28 kB / 426.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.2662, allocations: 91.73 kB / 426.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.2663, allocations: 107.5 kB / 426.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003846/0.2667, allocations: 290.8 kB / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.2667, allocations: 0 / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2667, allocations: 3.938 kB / 426.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2667, allocations: 0 / 426.7 MB, free: 10.25 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.001097/0.2678, allocations: 0.512 MB / 427.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2679, allocations: 12.03 kB / 427.2 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.547e-05/0.2679, allocations: 66.72 kB / 427.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.559e-05/0.268, allocations: 32.75 kB / 427.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003638/0.2684, allocations: 197.9 kB / 427.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003446/0.2687, allocations: 351.5 kB / 427.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.938e-05/0.2688, allocations: 24 kB / 427.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009026/0.2697, allocations: 366.6 kB / 428.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.2697, allocations: 0 / 428.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.2697, allocations: 8 kB / 428.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.2697, allocations: 12 kB / 428.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.2712, allocations: 0.4976 MB / 428.7 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.273, allocations: 0.895 MB / 429.6 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.2741, allocations: 306.1 kB / 429.9 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005373/0.2746, allocations: 168.7 kB / 430.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.2746, allocations: 8 kB / 430.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.2747, allocations: 42.56 kB / 430.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.442e-06/0.2747, allocations: 0 / 430.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.02734/0.302, allocations: 5.671 MB / 435.8 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.3021, allocations: 59.84 kB / 435.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.3024, allocations: 210.3 kB / 436.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.3e-05/0.3025, allocations: 37.7 kB / 436.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.3026, allocations: 145 kB / 436.2 MB, free: 380 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.3028, allocations: 190.3 kB / 436.4 MB, free: 188 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/0.3031, allocations: 94.3 kB / 436.5 MB, free: 88 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002349/0.3033, allocations: 338.8 kB / 436.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/0.3047, allocations: 477 kB / 437.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.3061, allocations: 0.5225 MB / 437.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002515/0.3087, allocations: 0.8101 MB / 438.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3087, allocations: 3.938 kB / 438.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002933/0.3116, allocations: 1.001 MB / 439.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.3116, allocations: 4 kB / 439.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3116, allocations: 7.938 kB / 439.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.3116, allocations: 4 kB / 439.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.3127, allocations: 167.8 kB / 439.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.3127, allocations: 7.938 kB / 439.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000689/0.3134, allocations: 83.89 kB / 439.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.509e-05/0.3135, allocations: 16 kB / 439.9 MB, free: 12.62 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.0003017/0.3138, allocations: 165.7 kB / 440.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.136e-05/0.3139, allocations: 23.86 kB / 440.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.314, allocations: 55.23 kB / 440.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.314, allocations: 8 kB / 440.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.314, allocations: 0 / 440.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.314, allocations: 0 / 440.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004438/0.3184, allocations: 1.745 MB / 441.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.3184, allocations: 8 kB / 441.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006542/0.3191, allocations: 147.9 kB / 442.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.632e-05/0.3191, allocations: 12 kB / 442.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.068e-05/0.3192, allocations: 23.94 kB / 442.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.557e-05/0.3192, allocations: 19.92 kB / 442.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/0.3192, allocations: 11.94 kB / 442.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003057/0.3222, allocations: 1.242 MB / 443.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/0.3225, allocations: 75.73 kB / 443.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/0.3225, allocations: 16 kB / 443.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.3231, allocations: 75.91 kB / 443.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003106/0.3234, allocations: 87.66 kB / 443.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.3234, allocations: 27.98 kB / 443.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001925/0.3236, allocations: 148.8 kB / 443.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3236, allocations: 4 kB / 443.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005045/0.3241, allocations: 100 kB / 443.9 MB, free: 8.348 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.003399/0.3275, allocations: 1.802 MB / 445.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.3301, allocations: 0.8019 MB / 446.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.3301, allocations: 0 / 446.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3311, allocations: 328.6 kB / 446.8 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006028/0.3317, allocations: 64.34 kB / 446.9 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.3432, allocations: 5.296 MB / 452.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.3434, allocations: 172.2 kB / 452.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004117/0.3438, allocations: 86.88 kB / 452.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/0.3441, allocations: 95.41 kB / 452.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3441, allocations: 0 / 452.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03928/0.3834, allocations: 9.414 MB / 462 MB, free: 6.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.7, allocations: 2.578 kB / 462 MB, free: 6.047 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798722 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.csv","/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] "Error: Could not read variable load.phi in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.232671696227044]