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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 103.6 kB / 16.31 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 193.2 kB / 17.24 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.1 MB / 223.1 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08414/0.08414, allocations: 12.59 MB / 283.1 MB, free: 15.46 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 91.88 kB / 343.5 MB, free: 2.941 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3551, allocations: 49.38 MB / 392.9 MB, free: 49.21 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004041/0.3592, allocations: 1.984 MB / 394.9 MB, free: 47.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009645/0.3602, allocations: 0.5521 MB / 395.4 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.3603, allocations: 6.188 kB / 395.4 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.3604, allocations: 12.86 kB / 395.4 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.458e-05/0.3605, allocations: 25.83 kB / 395.5 MB, free: 47.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.3608, allocations: 61 kB / 395.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001893/0.361, allocations: 117 kB / 395.6 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.3612, allocations: 64.12 kB / 395.7 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.478e-05/0.3613, allocations: 46.69 kB / 395.7 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.3614, allocations: 56.45 kB / 395.8 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.3615, allocations: 10.44 kB / 395.8 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.577e-05/0.3615, allocations: 13.94 kB / 395.8 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.683e-05/0.3615, allocations: 28.84 kB / 395.8 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.469e-05/0.3616, allocations: 60.06 kB / 395.9 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.3618, allocations: 115.9 kB / 396 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3618, allocations: 0 / 396 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3618, allocations: 0 / 396 MB, free: 47.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.3619, allocations: 3.938 kB / 396 MB, free: 47.14 MB / 318.1 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.0005894/0.3625, allocations: 422.9 kB / 396.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.3625, allocations: 13.84 kB / 396.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.3626, allocations: 20.38 kB / 396.5 MB, free: 46.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.3628, allocations: 212.6 kB / 396.7 MB, free: 46.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.3628, allocations: 9.875 kB / 396.7 MB, free: 46.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.625e-05/0.3628, allocations: 12.86 kB / 396.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004959/0.3633, allocations: 237.6 kB / 396.9 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.3633, allocations: 1.906 kB / 396.9 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.3634, allocations: 1.406 kB / 396.9 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.3634, allocations: 2.656 kB / 396.9 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002569/0.3636, allocations: 90.03 kB / 397 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006176/0.3643, allocations: 0.5825 MB / 397.6 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.3646, allocations: 151.2 kB / 397.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.3647, allocations: 75.22 kB / 397.8 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.3648, allocations: 10.12 kB / 397.8 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.3648, allocations: 39.72 kB / 397.9 MB, free: 45.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.3648, allocations: 0 / 397.9 MB, free: 45.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005266/0.3653, allocations: 170.8 kB / 398 MB, free: 45.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.3654, allocations: 123.1 kB / 398.2 MB, free: 45.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.924e-05/0.3655, allocations: 132.6 kB / 398.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.3655, allocations: 25.7 kB / 398.3 MB, free: 45.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.3656, allocations: 109.1 kB / 398.4 MB, free: 44.99 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.763e-05/0.3656, allocations: 32.16 kB / 398.5 MB, free: 44.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.955e-05/0.3657, allocations: 36.55 kB / 398.5 MB, free: 44.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.577e-05/0.3658, allocations: 321 kB / 398.8 MB, free: 44.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3659, allocations: 36.14 kB / 398.8 MB, free: 44.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.3661, allocations: 130.5 kB / 399 MB, free: 44.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003022/0.3664, allocations: 184.9 kB / 399.1 MB, free: 44.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3664, allocations: 5.406 kB / 399.1 MB, free: 44.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003563/0.3668, allocations: 181 kB / 399.3 MB, free: 44.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.3668, allocations: 11.95 kB / 399.3 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.3668, allocations: 10.41 kB / 399.3 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/0.3668, allocations: 8.938 kB / 399.4 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.367, allocations: 44.77 kB / 399.4 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.367, allocations: 4.938 kB / 399.4 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.3672, allocations: 19.64 kB / 399.4 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.3672, allocations: 12.38 kB / 399.4 MB, free: 44.12 MB / 318.1 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 () * Number of clocked states: 1 (PI.x) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.939e-05/0.3673, allocations: 125.1 kB / 399.6 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.3674, allocations: 84.97 kB / 399.6 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.798e-05/0.3675, allocations: 27.48 kB / 399.7 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3675, allocations: 2.219 kB / 399.7 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3675, allocations: 1.156 kB / 399.7 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3675, allocations: 1.156 kB / 399.7 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.3677, allocations: 205.2 kB / 399.9 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3677, allocations: 5.375 kB / 399.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.3679, allocations: 29.89 kB / 399.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.3679, allocations: 1.125 kB / 399.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.3679, allocations: 10 kB / 399.9 MB, free: 43.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3679, allocations: 5.047 kB / 399.9 MB, free: 43.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3679, allocations: 9.094 kB / 399.9 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004765/0.3684, allocations: 366.4 kB / 400.3 MB, free: 43.37 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.3685, allocations: 88.48 kB / 400.4 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.3685, allocations: 10.47 kB / 400.4 MB, free: 43.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.3686, allocations: 11.45 kB / 400.4 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.3687, allocations: 3.5 kB / 400.4 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.3687, allocations: 7.266 kB / 400.4 MB, free: 43.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.638e-05/0.3687, allocations: 105 kB / 400.5 MB, free: 43.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3688, allocations: 0 / 400.5 MB, free: 43.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003196/0.3691, allocations: 24.53 kB / 400.5 MB, free: 43.16 MB / 318.1 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 () * Number of clocked states: 1 (PI.x) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.9e-05/0.3692, allocations: 103.1 kB / 400.6 MB, free: 43.06 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003444/0.3695, allocations: 118.5 kB / 400.8 MB, free: 43.01 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3695, allocations: 1.031 kB / 400.8 MB, free: 43.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.976e-05/0.3697, allocations: 29.06 kB / 400.8 MB, free: 43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005747/0.3702, allocations: 63.69 kB / 400.8 MB, free: 42.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006719/0.3709, allocations: 387.4 kB / 401.2 MB, free: 42.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001577/0.3711, allocations: 0.7113 MB / 401.9 MB, free: 41.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.882e-05/0.3711, allocations: 20.88 kB / 402 MB, free: 41.92 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.575e-05/0.3712, allocations: 14.22 kB / 402 MB, free: 41.91 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3712, allocations: 1.188 kB / 402 MB, free: 41.91 MB / 318.1 MB Notification: Performance of Templates: time 0.003931/0.3751, allocations: 1.16 MB / 403.1 MB, free: 41.36 MB / 318.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches