Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001493/0.001493, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001481/0.001481, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.524/1.524, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 47.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1222, allocations: 53.32 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.005002/0.1272, allocations: 2.164 MB / 428.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.129, allocations: 0.686 MB / 429.1 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.1292, allocations: 7.938 kB / 429.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000314/0.1295, allocations: 43.7 kB / 429.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.1297, allocations: 55.56 kB / 429.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004492/0.1301, allocations: 123.1 kB / 429.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005356/0.1307, allocations: 339.2 kB / 429.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.1309, allocations: 52.36 kB / 429.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003744/0.1313, allocations: 155.5 kB / 429.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.1316, allocations: 151.5 kB / 430 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.843e-05/0.1316, allocations: 31.94 kB / 430.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.644e-05/0.1317, allocations: 36 kB / 430.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.1319, allocations: 91.72 kB / 430.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.1321, allocations: 119.4 kB / 430.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005366/0.1326, allocations: 282.9 kB / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1326, allocations: 3.938 kB / 430.6 MB, free: 480 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1326, allocations: 7.938 kB / 430.6 MB, free: 472 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.1326, allocations: 0 / 430.6 MB, free: 472 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.2881/0.4208, allocations: 0.5737 MB / 431.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4208, allocations: 11.75 kB / 431.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.508e-05/0.4209, allocations: 60.73 kB / 431.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.004e-05/0.421, allocations: 31.48 kB / 431.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.4213, allocations: 253.6 kB / 431.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002027/0.4216, allocations: 137.2 kB / 431.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.43e-05/0.4216, allocations: 30.25 kB / 431.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008693/0.4225, allocations: 364.4 kB / 432 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.4225, allocations: 4.922 kB / 432.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/0.4225, allocations: 13.06 kB / 432.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.4225, allocations: 7.172 kB / 432.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.4239, allocations: 0.4892 MB / 432.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.4254, allocations: 1.002 MB / 433.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.4265, allocations: 320 kB / 433.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004815/0.427, allocations: 165.2 kB / 434 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.4271, allocations: 3.734 kB / 434 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.573e-05/0.4271, allocations: 35.98 kB / 434.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.513e-06/0.4271, allocations: 0 / 434.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.0286/0.4557, allocations: 5.798 MB / 439.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.4557, allocations: 59.5 kB / 439.9 MB, free: 8.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.4559, allocations: 202.4 kB / 440.1 MB, free: 8.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.093e-05/0.456, allocations: 31.89 kB / 440.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.177e-05/0.4561, allocations: 155 kB / 440.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.4562, allocations: 184.2 kB / 440.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/0.4564, allocations: 91.77 kB / 440.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.585e-05/0.4565, allocations: 337.7 kB / 440.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.4578, allocations: 468.8 kB / 441.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.4592, allocations: 0.5193 MB / 441.9 MB, free: 7.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002469/0.4617, allocations: 0.8033 MB / 442.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4617, allocations: 3.469 kB / 442.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002897/0.4646, allocations: 0.9815 MB / 443.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.4646, allocations: 5.891 kB / 443.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.4646, allocations: 6.656 kB / 443.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.4646, allocations: 4.781 kB / 443.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009937/0.4656, allocations: 171.3 kB / 443.9 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.4656, allocations: 5.156 kB / 443.9 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007002/0.4663, allocations: 83.56 kB / 443.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.383e-05/0.4664, allocations: 16.02 kB / 444 MB, free: 6.918 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.0001995/0.4666, allocations: 163.8 kB / 444.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.678e-05/0.4667, allocations: 31.14 kB / 444.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001331/0.4668, allocations: 56.52 kB / 444.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.4668, allocations: 6.625 kB / 444.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.4668, allocations: 0 / 444.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.4668, allocations: 3.438 kB / 444.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004162/0.471, allocations: 1.873 MB / 446.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.471, allocations: 8.797 kB / 446.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000672/0.4717, allocations: 150.2 kB / 446.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.04e-05/0.4717, allocations: 9.562 kB / 446.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.13e-05/0.4717, allocations: 21.81 kB / 446.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.464e-05/0.4717, allocations: 15.98 kB / 446.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/0.4717, allocations: 15.42 kB / 446.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002873/0.4746, allocations: 1.226 MB / 447.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.4748, allocations: 147.8 kB / 447.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.079e-05/0.4748, allocations: 18.39 kB / 447.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005367/0.4754, allocations: 74.81 kB / 447.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/0.4756, allocations: 88.28 kB / 447.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.4756, allocations: 23.25 kB / 447.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001432/0.4757, allocations: 154.2 kB / 448 MB, free: 4.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4757, allocations: 3.188 kB / 448 MB, free: 4.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005315/0.4763, allocations: 91.75 kB / 448.1 MB, free: 4.664 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.003069/0.4793, allocations: 1.783 MB / 449.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002682/0.482, allocations: 0.7831 MB / 450.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.482, allocations: 2.062 kB / 450.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.4831, allocations: 319.3 kB / 451 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007128/0.4838, allocations: 63 kB / 451.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.4946, allocations: 5.242 MB / 456.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/0.4951, allocations: 0.7775 MB / 457.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004165/0.4955, allocations: 87.11 kB / 457.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003295/0.4958, allocations: 94.45 kB / 457.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4958, allocations: 0 / 457.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04045/0.5363, allocations: 8.396 MB / 465.7 MB, free: 9.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.786/9.323, allocations: 10.73 kB / 465.7 MB, free: 9.734 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.067016393993981]