Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009983/0.0009985, allocations: 177.6 kB / 8.045 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.447/1.447, allocations: 205.3 MB / 213.8 MB, free: 1.738 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.0007811/0.0007813, allocations: 88.02 kB / 261.8 MB, free: 1.688 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.08206/0.08206, allocations: 12.6 MB / 322.4 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.213e-05/1.211e-05, allocations: 0 / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2682, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3736, allocations: 79.23 MB / 0.4966 GB, free: 3.012 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.3738, allocations: 71.95 kB / 0.4967 GB, free: 2.941 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005998/0.3798, allocations: 2.327 MB / 0.499 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.3799, allocations: 4 kB / 0.499 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.3799, allocations: 4 kB / 0.499 GB, free: 0.6094 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004644/0.3803, allocations: 394.2 kB / 0.4993 GB, free: 184 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3804, allocations: 12.03 kB / 0.4993 GB, free: 172 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.3804, allocations: 11.81 kB / 0.4994 GB, free: 160 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.3807, allocations: 199 kB / 0.4995 GB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.3807, allocations: 15.95 kB / 0.4996 GB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.3807, allocations: 15.91 kB / 0.4996 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001864/0.3809, allocations: 59.98 kB / 0.4996 GB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003512/0.3813, allocations: 206.6 kB / 0.4998 GB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.3813, allocations: 0 / 0.4998 GB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.3813, allocations: 0 / 0.4998 GB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.3813, allocations: 4 kB / 0.4998 GB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006069/0.382, allocations: 0.5614 MB / 0.5004 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.3822, allocations: 127.7 kB / 0.5005 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.59e-05/0.3823, allocations: 66.64 kB / 0.5006 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.3824, allocations: 8 kB / 0.5006 GB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.3824, allocations: 34.56 kB / 0.5006 GB, free: 14.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.3824, allocations: 0 / 0.5006 GB, free: 14.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002544/0.3827, allocations: 109.5 kB / 0.5007 GB, free: 14.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.3827, allocations: 110.8 kB / 0.5008 GB, free: 14.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.15e-05/0.3828, allocations: 117.3 kB / 0.5009 GB, free: 14.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.3828, allocations: 25.7 kB / 0.501 GB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.18e-05/0.3829, allocations: 116 kB / 0.5011 GB, free: 14.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3829, allocations: 27.64 kB / 0.5011 GB, free: 14.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.383, allocations: 0 / 0.5011 GB, free: 14.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3831, allocations: 322.8 kB / 0.5014 GB, free: 13.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.811e-05/0.3831, allocations: 16.38 kB / 0.5014 GB, free: 13.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.3832, allocations: 125.7 kB / 0.5015 GB, free: 13.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.349e-05/0.3833, allocations: 41.2 kB / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3833, allocations: 0 / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002025/0.3835, allocations: 145.3 kB / 0.5017 GB, free: 13.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3835, allocations: 8 kB / 0.5017 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3836, allocations: 0 / 0.5017 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.3836, allocations: 11.95 kB / 0.5017 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.3837, allocations: 52.38 kB / 0.5018 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3838, allocations: 7.938 kB / 0.5018 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.3839, allocations: 23.83 kB / 0.5018 GB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.3839, allocations: 12 kB / 0.5018 GB, free: 13.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.89e-05/0.384, allocations: 108.9 kB / 0.5019 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.3841, allocations: 77.5 kB / 0.502 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.247e-05/0.3842, allocations: 12.81 kB / 0.502 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.3842, allocations: 8 kB / 0.502 GB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.3842, allocations: 7.891 kB / 0.502 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3842, allocations: 3.984 kB / 0.502 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002152/0.3844, allocations: 174.1 kB / 0.5022 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3845, allocations: 0 / 0.5022 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.3846, allocations: 43.97 kB / 0.5022 GB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.3846, allocations: 0 / 0.5022 GB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.3847, allocations: 4 kB / 0.5022 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3847, allocations: 0 / 0.5022 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3847, allocations: 3.938 kB / 0.5022 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.385, allocations: 358.8 kB / 0.5026 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.11e-05/0.3851, allocations: 85.05 kB / 0.5027 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.3851, allocations: 4.078 kB / 0.5027 GB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.3853, allocations: 20.02 kB / 0.5027 GB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.3853, allocations: 15.97 kB / 0.5027 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.3853, allocations: 4 kB / 0.5027 GB, free: 12.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.089e-05/0.3854, allocations: 88.97 kB / 0.5028 GB, free: 12.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3854, allocations: 0 / 0.5028 GB, free: 12.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002999/0.3857, allocations: 27.92 kB / 0.5028 GB, free: 12.22 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 (15): * Single equations (assignments): 15 * 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.0001168/0.3858, allocations: 103.2 kB / 0.5029 GB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.386, allocations: 79.88 kB / 0.503 GB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.386, allocations: 0 / 0.503 GB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.84e-05/0.386, allocations: 15.98 kB / 0.503 GB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.3863, allocations: 51.89 kB / 0.5031 GB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005087/0.3869, allocations: 287.7 kB / 0.5033 GB, free: 11.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.3871, allocations: 0.7164 MB / 0.504 GB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.594e-05/0.3872, allocations: 17.2 kB / 0.5041 GB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.3872, allocations: 11.44 kB / 0.5041 GB, free: 10.88 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3872, allocations: 0 / 0.5041 GB, free: 10.88 MB / 362.7 MB Notification: Performance of Templates: time 0.003231/0.3905, allocations: 0.981 MB / 0.505 GB, free: 9.906 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches