Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001252/0.001252, allocations: 177.6 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.3 MB / 213.8 MB, free: 1.754 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008265/0.0008265, allocations: 83.89 kB / 261.8 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07869/0.07869, allocations: 12.61 MB / 322.4 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.462e-05/1.474e-05, allocations: 0 / 378.9 MB, free: 6.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2665, allocations: 50.38 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.3714, allocations: 79.19 MB / 0.4966 GB, free: 3.051 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.3717, allocations: 79.89 kB / 0.4967 GB, free: 2.973 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006004/0.3777, allocations: 2.296 MB / 0.4989 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3777, allocations: 192 / 0.4989 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.3777, allocations: 4 kB / 0.4989 GB, free: 0.6758 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005023/0.3782, allocations: 402.1 kB / 0.4993 GB, free: 244 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3783, allocations: 8.031 kB / 0.4993 GB, free: 236 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.748e-05/0.3783, allocations: 15.81 kB / 0.4993 GB, free: 220 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.3786, allocations: 202.8 kB / 0.4995 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.3786, allocations: 7.953 kB / 0.4995 GB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.537e-05/0.3786, allocations: 12 kB / 0.4995 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001568/0.3788, allocations: 63.98 kB / 0.4996 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003431/0.3792, allocations: 194.6 kB / 0.4998 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.3792, allocations: 8 kB / 0.4998 GB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.3792, allocations: 0 / 0.4998 GB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.3792, allocations: 4 kB / 0.4998 GB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006264/0.3798, allocations: 0.5536 MB / 0.5003 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.38, allocations: 120 kB / 0.5004 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.509e-05/0.3801, allocations: 58.7 kB / 0.5005 GB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.3802, allocations: 7.984 kB / 0.5005 GB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.3802, allocations: 34.56 kB / 0.5005 GB, free: 14.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.3802, allocations: 0 / 0.5005 GB, free: 14.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002482/0.3805, allocations: 109.5 kB / 0.5006 GB, free: 14.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.326e-05/0.3806, allocations: 114.7 kB / 0.5007 GB, free: 14.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.979e-05/0.3807, allocations: 119.1 kB / 0.5009 GB, free: 14.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.3807, allocations: 25.7 kB / 0.5009 GB, free: 14.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.814e-05/0.3808, allocations: 108 kB / 0.501 GB, free: 14.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.3808, allocations: 27.64 kB / 0.501 GB, free: 14.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-06/0.3808, allocations: 0 / 0.501 GB, free: 14.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3809, allocations: 322.8 kB / 0.5013 GB, free: 13.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.838e-05/0.381, allocations: 20 kB / 0.5013 GB, free: 13.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.457e-05/0.3811, allocations: 109.9 kB / 0.5014 GB, free: 13.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.245e-05/0.3811, allocations: 41.2 kB / 0.5015 GB, free: 13.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3812, allocations: 0 / 0.5015 GB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002084/0.3814, allocations: 145.3 kB / 0.5016 GB, free: 13.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.3814, allocations: 11.95 kB / 0.5016 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3814, allocations: 0 / 0.5016 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3814, allocations: 8 kB / 0.5016 GB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.3816, allocations: 48.36 kB / 0.5017 GB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.3816, allocations: 7.984 kB / 0.5017 GB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.823e-05/0.3817, allocations: 19.84 kB / 0.5017 GB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.3818, allocations: 8 kB / 0.5017 GB, free: 13.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001201/0.3819, allocations: 108.9 kB / 0.5018 GB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.382, allocations: 77.53 kB / 0.5019 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.425e-05/0.3821, allocations: 20.56 kB / 0.5019 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3821, allocations: 0 / 0.5019 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3821, allocations: 0 / 0.5019 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3821, allocations: 8 kB / 0.5019 GB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.3823, allocations: 174 kB / 0.5021 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3823, allocations: 0 / 0.5021 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.3825, allocations: 43.91 kB / 0.5021 GB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3825, allocations: 0 / 0.5021 GB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.3825, allocations: 8.125 kB / 0.5021 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3825, allocations: 0 / 0.5021 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.3826, allocations: 7.891 kB / 0.5022 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000328/0.3829, allocations: 343 kB / 0.5025 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-05/0.3829, allocations: 89 kB / 0.5026 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.383, allocations: 3.984 kB / 0.5026 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.3831, allocations: 12 kB / 0.5026 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.3832, allocations: 12.05 kB / 0.5026 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.3832, allocations: 4 kB / 0.5026 GB, free: 12.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.088e-05/0.3832, allocations: 98.03 kB / 0.5027 GB, free: 12.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3832, allocations: 0 / 0.5027 GB, free: 12.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00029/0.3835, allocations: 31.83 kB / 0.5027 GB, free: 12.35 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001038/0.3836, allocations: 99.03 kB / 0.5028 GB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001586/0.3838, allocations: 76.81 kB / 0.5029 GB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3838, allocations: 4.062 kB / 0.5029 GB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.53e-05/0.3839, allocations: 23.92 kB / 0.5029 GB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.3842, allocations: 40.03 kB / 0.5029 GB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005584/0.3848, allocations: 286.9 kB / 0.5032 GB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.3851, allocations: 0.7162 MB / 0.5039 GB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.809e-05/0.3852, allocations: 16.72 kB / 0.5039 GB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.182e-05/0.3852, allocations: 15.44 kB / 0.504 GB, free: 11.02 MB / 362.7 MB Notification: Performance of SimCode: time 7.22e-07/0.3852, allocations: 0 / 0.504 GB, free: 11.02 MB / 362.7 MB Notification: Performance of Templates: time 0.003131/0.3883, allocations: 0.9532 MB / 0.5049 GB, free: 10.07 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches