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.001639/0.001639, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001759/0.001759, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.406/1.406, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.001894/0.001894, allocations: 67.89 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1085, allocations: 53.32 MB / 426.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003688/0.1122, allocations: 2.167 MB / 428.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.1136, allocations: 0.686 MB / 429.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1137, allocations: 4 kB / 429.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.114, allocations: 43.64 kB / 429.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.1141, allocations: 55.61 kB / 429.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.1145, allocations: 123.8 kB / 429.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003976/0.1149, allocations: 335.2 kB / 430 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.115, allocations: 52.36 kB / 430.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.1153, allocations: 155.5 kB / 430.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002291/0.1156, allocations: 147.5 kB / 430.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.171e-05/0.1156, allocations: 32 kB / 430.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.25e-05/0.1157, allocations: 28 kB / 430.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1158, allocations: 99.7 kB / 430.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.1159, allocations: 123.4 kB / 430.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003689/0.1163, allocations: 290.8 kB / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1163, allocations: 0 / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1163, allocations: 0 / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1163, allocations: 0 / 431 MB, free: 0.6602 MB / 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.001162/0.1174, allocations: 0.5802 MB / 431.5 MB, free: 32 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.1175, allocations: 8.031 kB / 431.5 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.094e-05/0.1176, allocations: 62.73 kB / 431.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.464e-05/0.1176, allocations: 28.8 kB / 431.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.1181, allocations: 263.3 kB / 431.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.1183, allocations: 141.9 kB / 432 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.1183, allocations: 24 kB / 432 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008211/0.1192, allocations: 363.6 kB / 432.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.1192, allocations: 3.953 kB / 432.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.1192, allocations: 12 kB / 432.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.1192, allocations: 8 kB / 432.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.1205, allocations: 497.8 kB / 432.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.1223, allocations: 1.007 MB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.1234, allocations: 319.1 kB / 434.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000467/0.1238, allocations: 173.1 kB / 434.4 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.1239, allocations: 8.234 kB / 434.4 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1239, allocations: 30.8 kB / 434.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.973e-06/0.1239, allocations: 0 / 434.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.02559/0.1495, allocations: 5.802 MB / 440.2 MB, free: 7.059 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.1495, allocations: 55.84 kB / 440.3 MB, free: 6.992 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.1498, allocations: 202.3 kB / 440.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.64e-05/0.1499, allocations: 33.7 kB / 440.5 MB, free: 6.746 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.15, allocations: 149 kB / 440.7 MB, free: 6.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.1502, allocations: 186.4 kB / 440.9 MB, free: 6.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/0.1504, allocations: 94.2 kB / 440.9 MB, free: 6.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.1506, allocations: 334.8 kB / 441.3 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.1519, allocations: 468.8 kB / 441.7 MB, free: 5.523 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.1532, allocations: 0.5177 MB / 442.2 MB, free: 4.988 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/0.1554, allocations: 0.8071 MB / 443.1 MB, free: 4.168 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1554, allocations: 0 / 443.1 MB, free: 4.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002607/0.158, allocations: 0.9829 MB / 444 MB, free: 3.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.158, allocations: 7.938 kB / 444 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1581, allocations: 0 / 444 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.1581, allocations: 7.984 kB / 444.1 MB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009417/0.159, allocations: 167.8 kB / 444.2 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.159, allocations: 7.938 kB / 444.2 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006191/0.1596, allocations: 83.83 kB / 444.3 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-05/0.1597, allocations: 16 kB / 444.3 MB, free: 2.895 MB / 366.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.0002786/0.16, allocations: 165.8 kB / 444.5 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.1601, allocations: 35.75 kB / 444.5 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.1602, allocations: 51.3 kB / 444.6 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1602, allocations: 4 kB / 444.6 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.1602, allocations: 0 / 444.6 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.1602, allocations: 0 / 444.6 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004241/0.1644, allocations: 1.877 MB / 446.5 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.1645, allocations: 9 kB / 446.5 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006227/0.1651, allocations: 151.8 kB / 446.6 MB, free: 440 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.869e-05/0.1651, allocations: 19.94 kB / 446.6 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.029e-05/0.1651, allocations: 16 kB / 446.6 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.306e-05/0.1652, allocations: 15.94 kB / 446.7 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.1652, allocations: 8 kB / 446.7 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1999/0.3651, allocations: 1.22 MB / 447.9 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.3653, allocations: 149.9 kB / 448 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.3653, allocations: 22.31 kB / 448.1 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000493/0.3658, allocations: 73.61 kB / 448.1 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.366, allocations: 84.45 kB / 448.2 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.366, allocations: 25.97 kB / 448.2 MB, free: 24.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001346/0.3662, allocations: 149 kB / 448.4 MB, free: 24.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3662, allocations: 3.562 kB / 448.4 MB, free: 24.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004688/0.3666, allocations: 97.94 kB / 448.5 MB, free: 24.6 MB / 366.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.002469/0.3691, allocations: 1.777 MB / 450.3 MB, free: 23.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.3711, allocations: 0.7797 MB / 451 MB, free: 23.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.842e-06/0.3712, allocations: 1.531 kB / 451 MB, free: 23.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008318/0.372, allocations: 321.4 kB / 451.4 MB, free: 23.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006325/0.3726, allocations: 65.72 kB / 451.4 MB, free: 23.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009982/0.3826, allocations: 5.239 MB / 456.7 MB, free: 20.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.383, allocations: 0.7835 MB / 457.4 MB, free: 19.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004445/0.3834, allocations: 77.78 kB / 457.5 MB, free: 19.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.3837, allocations: 97.22 kB / 457.6 MB, free: 19.78 MB / 366.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3837, allocations: 0 / 457.6 MB, free: 19.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03351/0.4172, allocations: 8.366 MB / 466 MB, free: 18.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/8.378, allocations: 8.062 kB / 466 MB, free: 18.19 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.781717841047794]