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.001236/0.001236, allocations: 105 kB / 16.02 MB, free: 6.34 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.001954/0.001954, allocations: 200.7 kB / 16.96 MB, free: 6.152 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.746/1.746, allocations: 205.1 MB / 222.8 MB, free: 12.45 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.0929/0.0929, allocations: 12.58 MB / 282.7 MB, free: 15.65 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.001752/0.001752, allocations: 80.81 kB / 343 MB, free: 3.316 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3434, allocations: 49.39 MB / 392.4 MB, free: 49.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004145/0.3475, allocations: 2.058 MB / 394.4 MB, free: 47.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.349, allocations: 0.5311 MB / 395 MB, free: 47.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.3491, allocations: 2.406 kB / 395 MB, free: 47.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.3493, allocations: 14.14 kB / 395 MB, free: 47.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.694e-05/0.3494, allocations: 20.41 kB / 395 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003499/0.3497, allocations: 44.14 kB / 395 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.3499, allocations: 121 kB / 395.2 MB, free: 47.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.3501, allocations: 59.16 kB / 395.2 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.3503, allocations: 54.61 kB / 395.3 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.3504, allocations: 57.69 kB / 395.3 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.3504, allocations: 10.16 kB / 395.3 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.894e-05/0.3504, allocations: 10.34 kB / 395.3 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.162e-05/0.3505, allocations: 25.05 kB / 395.4 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.326e-05/0.3506, allocations: 55.73 kB / 395.4 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.3508, allocations: 131.7 kB / 395.5 MB, free: 47.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3508, allocations: 0 / 395.5 MB, free: 47.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3509, allocations: 0 / 395.5 MB, free: 47.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.3509, allocations: 4.688 kB / 395.6 MB, free: 47.05 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.0006004/0.3515, allocations: 423.6 kB / 396 MB, free: 46.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.3515, allocations: 8.203 kB / 396 MB, free: 46.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.237e-05/0.3516, allocations: 15.12 kB / 396 MB, free: 46.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.3518, allocations: 206.3 kB / 396.2 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.3519, allocations: 12.56 kB / 396.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/0.3519, allocations: 13.22 kB / 396.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006152/0.3525, allocations: 239 kB / 396.4 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.3526, allocations: 0 / 396.4 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.3526, allocations: 6.812 kB / 396.5 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.3526, allocations: 3.5 kB / 396.5 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002723/0.3529, allocations: 87.38 kB / 396.5 MB, free: 46.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006178/0.3535, allocations: 0.5878 MB / 397.1 MB, free: 45.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.3538, allocations: 151 kB / 397.3 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.354, allocations: 72.56 kB / 397.3 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-05/0.354, allocations: 3.484 kB / 397.4 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.3541, allocations: 44.48 kB / 397.4 MB, free: 45.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.3541, allocations: 0 / 397.4 MB, free: 45.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005084/0.3546, allocations: 175.4 kB / 397.6 MB, free: 45.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.3547, allocations: 118.6 kB / 397.7 MB, free: 45.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.878e-05/0.3547, allocations: 130.4 kB / 397.8 MB, free: 45.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.3548, allocations: 29.77 kB / 397.8 MB, free: 45.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.763e-05/0.3548, allocations: 113.1 kB / 397.9 MB, free: 44.99 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.3549, allocations: 28.45 kB / 398 MB, free: 44.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.3549, allocations: 36.33 kB / 398 MB, free: 44.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.366e-05/0.355, allocations: 321.1 kB / 398.3 MB, free: 44.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.3551, allocations: 36.06 kB / 398.4 MB, free: 44.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.3552, allocations: 129.7 kB / 398.5 MB, free: 44.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.3555, allocations: 180.5 kB / 398.7 MB, free: 44.28 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3555, allocations: 1.156 kB / 398.7 MB, free: 44.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003714/0.3559, allocations: 188.7 kB / 398.8 MB, free: 44.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.3559, allocations: 7.344 kB / 398.9 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.3559, allocations: 6.594 kB / 398.9 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.356, allocations: 8.5 kB / 398.9 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.3562, allocations: 45.61 kB / 398.9 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.3562, allocations: 12.42 kB / 398.9 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.952e-05/0.3563, allocations: 20.44 kB / 398.9 MB, free: 44.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.3563, allocations: 8.594 kB / 399 MB, free: 44.13 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 0.0001056/0.3564, allocations: 130.3 kB / 399.1 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.3566, allocations: 84.41 kB / 399.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.562e-05/0.3566, allocations: 22.45 kB / 399.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.3567, allocations: 2.094 kB / 399.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.3567, allocations: 0.9375 kB / 399.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.3567, allocations: 5.125 kB / 399.2 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.3569, allocations: 206.8 kB / 399.4 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3569, allocations: 0 / 399.4 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.3571, allocations: 34.89 kB / 399.4 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3571, allocations: 5.328 kB / 399.4 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.3571, allocations: 4.969 kB / 399.4 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.3571, allocations: 2.062 kB / 399.4 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3571, allocations: 5 kB / 399.4 MB, free: 43.67 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004682/0.3576, allocations: 365.9 kB / 399.8 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.3577, allocations: 88.33 kB / 399.9 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.3577, allocations: 10.28 kB / 399.9 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.3578, allocations: 8.609 kB / 399.9 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.3579, allocations: 15.02 kB / 399.9 MB, free: 43.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.3579, allocations: 7.344 kB / 399.9 MB, free: 43.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.849e-05/0.358, allocations: 100.8 kB / 400 MB, free: 43.17 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.358, allocations: 0 / 400 MB, free: 43.17 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.3583, allocations: 28.84 kB / 400.1 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.377e-05/0.3584, allocations: 96.03 kB / 400.2 MB, free: 43.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003388/0.3587, allocations: 123.5 kB / 400.3 MB, free: 43.01 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3587, allocations: 0 / 400.3 MB, free: 43.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.3589, allocations: 29.58 kB / 400.3 MB, free: 43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006079/0.3595, allocations: 51.92 kB / 400.4 MB, free: 42.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007355/0.3602, allocations: 439.9 kB / 400.8 MB, free: 42.61 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.3604, allocations: 0.7112 MB / 401.5 MB, free: 41.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.217e-05/0.3604, allocations: 17.91 kB / 401.5 MB, free: 41.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/0.3605, allocations: 17.56 kB / 401.5 MB, free: 41.88 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3605, allocations: 5.094 kB / 401.5 MB, free: 41.87 MB / 318.1 MB Notification: Performance of Templates: time 0.004358/0.3649, allocations: 1.116 MB / 402.6 MB, free: 41.34 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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches