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.001738/0.001738, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002086/0.002086, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.52/1.52, allocations: 230.5 MB / 254 MB, free: 15.02 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.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 0.003254/0.003254, allocations: 59.91 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1667, allocations: 53.38 MB / 426.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.006148/0.1728, allocations: 2.162 MB / 428.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.1752, allocations: 0.69 MB / 429.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002967/0.1755, allocations: 7.875 kB / 429.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004491/0.1759, allocations: 47.64 kB / 429.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.1763, allocations: 51.62 kB / 429.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.1769, allocations: 127.8 kB / 429.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007661/0.1777, allocations: 339.2 kB / 429.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.178, allocations: 56.36 kB / 429.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005413/0.1785, allocations: 155.5 kB / 429.9 MB, free: 1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004324/0.1789, allocations: 151.5 kB / 430.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.1791, allocations: 32 kB / 430.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.083e-05/0.1791, allocations: 28 kB / 430.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.1793, allocations: 91.72 kB / 430.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.1796, allocations: 119.4 kB / 430.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006245/0.1802, allocations: 282.8 kB / 430.6 MB, free: 316 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1802, allocations: 7.938 kB / 430.6 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1802, allocations: 0 / 430.6 MB, free: 308 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.1802, allocations: 0 / 430.6 MB, free: 308 kB / 350.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.2557/0.4359, allocations: 0.5776 MB / 431.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.466e-05/0.436, allocations: 10.75 kB / 431.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.107e-05/0.4361, allocations: 63.64 kB / 431.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.873e-05/0.4362, allocations: 32.05 kB / 431.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004283/0.4366, allocations: 257.3 kB / 431.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000239/0.4368, allocations: 131.5 kB / 431.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.409e-05/0.4369, allocations: 27.75 kB / 431.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.438, allocations: 368.3 kB / 432.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.438, allocations: 4.672 kB / 432.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.4381, allocations: 11.62 kB / 432.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.4381, allocations: 9.281 kB / 432.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/0.4396, allocations: 494.5 kB / 432.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.4414, allocations: 1.003 MB / 433.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.4427, allocations: 324.7 kB / 433.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005536/0.4433, allocations: 163.7 kB / 434.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.4433, allocations: 3.5 kB / 434.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.4434, allocations: 36.08 kB / 434.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.275e-06/0.4434, allocations: 1.344 kB / 434.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.03005/0.4734, allocations: 5.8 MB / 439.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.4734, allocations: 58.16 kB / 440 MB, free: 8.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.4737, allocations: 197.8 kB / 440.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.138e-05/0.4738, allocations: 35.95 kB / 440.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.4738, allocations: 155.9 kB / 440.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.474, allocations: 189.3 kB / 440.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/0.4742, allocations: 89.16 kB / 440.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.731e-05/0.4743, allocations: 338.7 kB / 441 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.4756, allocations: 478.2 kB / 441.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.477, allocations: 0.5168 MB / 441.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002404/0.4794, allocations: 0.7989 MB / 442.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.748e-06/0.4794, allocations: 0 / 442.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002859/0.4823, allocations: 0.989 MB / 443.7 MB, free: 6.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.4823, allocations: 6.453 kB / 443.7 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.4823, allocations: 5.094 kB / 443.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.4823, allocations: 3 kB / 443.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.4833, allocations: 167.5 kB / 443.9 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.4833, allocations: 8.906 kB / 443.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006972/0.484, allocations: 84.09 kB / 444 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.345e-05/0.4841, allocations: 15.12 kB / 444 MB, free: 6.785 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: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002228/0.4843, allocations: 156.3 kB / 444.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.903e-05/0.4844, allocations: 28.78 kB / 444.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.4845, allocations: 67.09 kB / 444.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.4845, allocations: 5.469 kB / 444.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.4845, allocations: 0.625 kB / 444.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.4846, allocations: 4.188 kB / 444.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004065/0.4886, allocations: 1.868 MB / 446.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.4886, allocations: 10.66 kB / 446.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006902/0.4893, allocations: 150.8 kB / 446.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.459e-05/0.4893, allocations: 10.78 kB / 446.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.594e-05/0.4894, allocations: 24.97 kB / 446.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.619e-05/0.4894, allocations: 16.44 kB / 446.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.427e-06/0.4894, allocations: 12.62 kB / 446.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.4921, allocations: 1.227 MB / 447.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.4923, allocations: 144.2 kB / 447.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.219e-05/0.4924, allocations: 23.73 kB / 447.8 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005266/0.4929, allocations: 69.86 kB / 447.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.4931, allocations: 87.09 kB / 447.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.693e-05/0.4931, allocations: 27.22 kB / 447.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001622/0.4933, allocations: 150.4 kB / 448.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4933, allocations: 0 / 448.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005286/0.4938, allocations: 96.31 kB / 448.2 MB, free: 4.52 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.002845/0.4967, allocations: 1.78 MB / 450 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002368/0.4991, allocations: 0.7805 MB / 450.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/0.4991, allocations: 6.156 kB / 450.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009683/0.5, allocations: 318.2 kB / 451.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006865/0.5007, allocations: 57.73 kB / 451.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.5115, allocations: 5.246 MB / 456.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.512, allocations: 0.7819 MB / 457.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004495/0.5125, allocations: 83.25 kB / 457.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/0.5128, allocations: 98.67 kB / 457.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5128, allocations: 0 / 457.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03873/0.5515, allocations: 8.379 MB / 465.7 MB, free: 9.617 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.258/8.81, allocations: 14.55 kB / 465.7 MB, free: 9.605 MB / 366.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.568609381909482]