Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000847/0.000847, allocations: 97.98 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009707/0.0009707, allocations: 203.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000211/0.0002111, allocations: 4 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.09464, allocations: 51.52 MB / 359.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002459/0.09714, allocations: 2.035 MB / 361.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.09863, allocations: 0.8145 MB / 362.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.09878, allocations: 7.938 kB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.09906, allocations: 43.75 kB / 362.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.09926, allocations: 47.69 kB / 362.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005186/0.09979, allocations: 151.7 kB / 362.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000379/0.1002, allocations: 367.5 kB / 362.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.1004, allocations: 95.72 kB / 362.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.1006, allocations: 139.5 kB / 363 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.1009, allocations: 159.2 kB / 363.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.1009, allocations: 20 kB / 363.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.619e-05/0.1009, allocations: 19.94 kB / 363.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.812e-05/0.101, allocations: 71.78 kB / 363.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.1012, allocations: 160.9 kB / 363.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002769/0.1015, allocations: 303.1 kB / 363.7 MB, free: 8.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1015, allocations: 0 / 363.7 MB, free: 8.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1015, allocations: 0 / 363.7 MB, free: 8.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.1015, allocations: 0 / 363.7 MB, free: 8.77 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001056/0.1025, allocations: 0.5851 MB / 364.3 MB, free: 8.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1026, allocations: 8.031 kB / 364.3 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.306e-05/0.1027, allocations: 70.72 kB / 364.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.724e-05/0.1028, allocations: 36.56 kB / 364.4 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.1031, allocations: 277.3 kB / 364.7 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.1033, allocations: 154.3 kB / 364.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.107e-05/0.1034, allocations: 28.38 kB / 364.9 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.1045, allocations: 0.5782 MB / 365.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1046, allocations: 4 kB / 365.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.562e-05/0.1046, allocations: 12 kB / 365.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1046, allocations: 4 kB / 365.5 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.1059, allocations: 0.5372 MB / 366 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.1073, allocations: 1.021 MB / 367.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.1089, allocations: 0.518 MB / 367.6 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006117/0.1095, allocations: 275.4 kB / 367.8 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/0.1095, allocations: 4 kB / 367.8 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.1096, allocations: 46.5 kB / 367.9 MB, free: 4.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.743e-06/0.1096, allocations: 0 / 367.9 MB, free: 4.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1931/0.3027, allocations: 6.753 MB / 374.6 MB, free: 20 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.3028, allocations: 148.8 kB / 374.8 MB, free: 19.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.303, allocations: 201.8 kB / 375 MB, free: 19.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.75e-05/0.3031, allocations: 40.2 kB / 375 MB, free: 19.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.3032, allocations: 143.9 kB / 375.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.3034, allocations: 192.2 kB / 375.4 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3035, allocations: 62.02 kB / 375.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.306e-05/0.3036, allocations: 343.6 kB / 375.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/0.3052, allocations: 0.6547 MB / 376.4 MB, free: 19.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.3068, allocations: 0.8338 MB / 377.2 MB, free: 18.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00288/0.3096, allocations: 1.327 MB / 378.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3097, allocations: 6.469 kB / 378.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003419/0.3131, allocations: 1.467 MB / 380 MB, free: 17.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.3131, allocations: 10.89 kB / 380 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.3131, allocations: 11.23 kB / 380.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.3132, allocations: 8.594 kB / 380.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.3145, allocations: 227.7 kB / 380.3 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.3145, allocations: 14.75 kB / 380.3 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009361/0.3154, allocations: 125.6 kB / 380.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.105e-05/0.3155, allocations: 25.47 kB / 380.4 MB, free: 17.28 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003044/0.3158, allocations: 191.9 kB / 380.6 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00032/0.3161, allocations: 151.1 kB / 380.8 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.3163, allocations: 59.14 kB / 380.8 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.3164, allocations: 9.312 kB / 380.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/0.3164, allocations: 1.312 kB / 380.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.3164, allocations: 9.047 kB / 380.9 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004706/0.3211, allocations: 2.3 MB / 383.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.3211, allocations: 10.59 kB / 383.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007493/0.3219, allocations: 204.5 kB / 383.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-05/0.3219, allocations: 13.78 kB / 383.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.322, allocations: 24.31 kB / 383.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.752e-05/0.322, allocations: 19.91 kB / 383.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.205e-05/0.322, allocations: 15.5 kB / 383.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003121/0.3251, allocations: 1.673 MB / 385.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.3253, allocations: 157.3 kB / 385.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.512e-05/0.3254, allocations: 25.94 kB / 385.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005908/0.326, allocations: 101.3 kB / 385.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.3262, allocations: 102.3 kB / 385.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.3263, allocations: 34.25 kB / 385.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001328/0.3264, allocations: 143.4 kB / 385.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3264, allocations: 0 / 385.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000687/0.3271, allocations: 123.2 kB / 385.8 MB, free: 14.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003472/0.3306, allocations: 2.236 MB / 388 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002931/0.3336, allocations: 1.2 MB / 389.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.3336, allocations: 1.219 kB / 389.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009788/0.3346, allocations: 379 kB / 389.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009946/0.3356, allocations: 143.8 kB / 389.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.3471, allocations: 7.138 MB / 396.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.3473, allocations: 0.8168 MB / 397.7 MB, free: 6.383 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005694/0.3479, allocations: 91.84 kB / 397.8 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003293/0.3483, allocations: 115.4 kB / 397.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3483, allocations: 0 / 397.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.3676, allocations: 10.39 MB / 408.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/0.3678, allocations: 225.4 kB / 408.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.927/2.295, allocations: 0 / 408.5 MB, free: 11.68 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches