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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.3 MB / 241.4 MB, free: 9.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008768/0.000877, allocations: 102.8 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003244, allocations: 8 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2569, allocations: 50.42 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1006/0.3575, allocations: 79.47 MB / 482.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.3578, allocations: 67.97 kB / 482.3 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01631/0.3741, allocations: 5.626 MB / 487.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3742, allocations: 0 / 487.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.963e-05/0.3742, allocations: 8 kB / 487.9 MB, free: 11.15 MB / 362.7 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.001166/0.3754, allocations: 0.5611 MB / 488.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.3755, allocations: 12.03 kB / 488.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.3756, allocations: 28.66 kB / 488.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.376, allocations: 243.7 kB / 488.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002384/0.3763, allocations: 146.2 kB / 488.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.061e-05/0.3763, allocations: 28.28 kB / 488.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009568/0.3773, allocations: 387.5 kB / 489.3 MB, free: 9.648 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/0.3774, allocations: 4 kB / 489.3 MB, free: 9.645 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.683e-05/0.3774, allocations: 8 kB / 489.3 MB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.3774, allocations: 11.98 kB / 489.3 MB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.3788, allocations: 0.5213 MB / 489.8 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.3807, allocations: 1.03 MB / 490.9 MB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3817, allocations: 342.3 kB / 491.2 MB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005245/0.3823, allocations: 192.7 kB / 491.4 MB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/0.3823, allocations: 4 kB / 491.4 MB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.3823, allocations: 34.56 kB / 491.4 MB, free: 7.422 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.204e-06/0.3824, allocations: 0 / 491.4 MB, free: 7.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.02549/0.4078, allocations: 6.686 MB / 498.1 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.408, allocations: 59.78 kB / 498.2 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003232/0.4083, allocations: 218.7 kB / 498.4 MB, free: 356 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.568e-05/0.4084, allocations: 33.7 kB / 498.4 MB, free: 316 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.446e-05/0.4085, allocations: 148.7 kB / 498.6 MB, free: 164 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.4087, allocations: 173.5 kB / 498.7 MB, free: 15.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.4087, allocations: 15.94 kB / 498.8 MB, free: 15.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.4089, allocations: 334.8 kB / 499.1 MB, free: 15.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001347/0.4102, allocations: 0.4969 MB / 499.6 MB, free: 15.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.4116, allocations: 0.5567 MB / 0.4884 GB, free: 14.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/0.414, allocations: 0.8853 MB / 0.4893 GB, free: 13.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.414, allocations: 0 / 0.4893 GB, free: 13.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00279/0.4168, allocations: 1.073 MB / 0.4903 GB, free: 12.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.4168, allocations: 8 kB / 0.4903 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.4168, allocations: 7.875 kB / 0.4903 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.4169, allocations: 4 kB / 0.4903 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009637/0.4178, allocations: 187.8 kB / 0.4905 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.4179, allocations: 4 kB / 0.4905 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006828/0.4186, allocations: 107.9 kB / 0.4906 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.605e-05/0.4186, allocations: 16 kB / 0.4907 GB, free: 12.26 MB / 378.7 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.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 initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002576/0.4189, allocations: 165.6 kB / 0.4908 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-05/0.419, allocations: 27.72 kB / 0.4908 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000125/0.4191, allocations: 51.31 kB / 0.4909 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.4191, allocations: 7.938 kB / 0.4909 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.4191, allocations: 0 / 0.4909 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-06/0.4192, allocations: 3.984 kB / 0.4909 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/0.4236, allocations: 2.005 MB / 0.4929 GB, free: 9.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/0.4236, allocations: 8 kB / 0.4929 GB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006799/0.4243, allocations: 176.4 kB / 0.493 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.294e-05/0.4244, allocations: 8 kB / 0.493 GB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.902e-05/0.4244, allocations: 20 kB / 0.4931 GB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.782e-05/0.4244, allocations: 19.88 kB / 0.4931 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.946e-06/0.4245, allocations: 8 kB / 0.4931 GB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003091/0.4276, allocations: 1.355 MB / 0.4944 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.4278, allocations: 148.8 kB / 0.4945 GB, free: 7.938 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.782e-05/0.4279, allocations: 27.92 kB / 0.4946 GB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/0.4285, allocations: 91.92 kB / 0.4947 GB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.4287, allocations: 95.66 kB / 0.4948 GB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.923e-05/0.4288, allocations: 20 kB / 0.4948 GB, free: 7.707 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002168/0.429, allocations: 163.1 kB / 0.4949 GB, free: 7.547 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.429, allocations: 0 / 0.4949 GB, free: 7.547 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006054/0.4296, allocations: 96 kB / 0.495 GB, free: 7.453 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000207/0.4299, allocations: 138.9 kB / 0.4952 GB, free: 7.305 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002504/0.4324, allocations: 0.9314 MB / 0.4961 GB, free: 6.379 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.4324, allocations: 0 / 0.4961 GB, free: 6.379 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.4334, allocations: 369.7 kB / 0.4964 GB, free: 6.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008037/0.4342, allocations: 63.34 kB / 0.4965 GB, free: 5.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.4368, allocations: 1.172 MB / 0.4976 GB, free: 4.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004547/0.4373, allocations: 0.7808 MB / 0.4984 GB, free: 3.852 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001344/0.4386, allocations: 78.94 kB / 0.4985 GB, free: 3.773 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003623/0.439, allocations: 27.44 kB / 0.4985 GB, free: 3.746 MB / 378.7 MB Notification: Performance of SimCode: time 5.16e-06/0.4391, allocations: 0 / 0.4985 GB, free: 3.746 MB / 378.7 MB Notification: Performance of Templates: time 0.2473/0.6864, allocations: 5.113 MB / 0.5035 GB, free: 103 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches