Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001569, allocations: 106.8 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.001516/0.001516, allocations: 190.5 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.838/1.838, 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.08898/0.08898, allocations: 12.59 MB / 283.1 MB, free: 15.47 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.002147/0.002148, allocations: 87.88 kB / 343.5 MB, free: 2.949 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3266, allocations: 49.38 MB / 392.9 MB, free: 49.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004115/0.3307, allocations: 2.047 MB / 394.9 MB, free: 47.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.3318, allocations: 0.5491 MB / 395.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.3319, allocations: 2.469 kB / 395.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.3321, allocations: 16.8 kB / 395.5 MB, free: 47.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.567e-05/0.3322, allocations: 26.36 kB / 395.5 MB, free: 47.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.3325, allocations: 58.78 kB / 395.6 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.3327, allocations: 129.2 kB / 395.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.3329, allocations: 58.69 kB / 395.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.28e-05/0.333, allocations: 55.47 kB / 395.8 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.3331, allocations: 57.61 kB / 395.9 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.07e-05/0.3332, allocations: 10.28 kB / 395.9 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.754e-05/0.3332, allocations: 15.81 kB / 395.9 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.332e-05/0.3332, allocations: 23.91 kB / 395.9 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.762e-05/0.3333, allocations: 60.53 kB / 396 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002036/0.3335, allocations: 122.4 kB / 396.1 MB, free: 47.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3335, allocations: 3.906 kB / 396.1 MB, free: 47.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3335, allocations: 0 / 396.1 MB, free: 47.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.3336, allocations: 0 / 396.1 MB, free: 47.03 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006155/0.3342, allocations: 432.9 kB / 396.5 MB, free: 46.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3342, allocations: 9.75 kB / 396.5 MB, free: 46.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.346e-05/0.3343, allocations: 16.73 kB / 396.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.3345, allocations: 212.7 kB / 396.8 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.3346, allocations: 7.938 kB / 396.8 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.3346, allocations: 14.22 kB / 396.8 MB, free: 46.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005007/0.3351, allocations: 230.5 kB / 397 MB, free: 46.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.3351, allocations: 1.156 kB / 397 MB, free: 46.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.3352, allocations: 5.188 kB / 397 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-06/0.3352, allocations: 2.344 kB / 397 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.3354, allocations: 84.69 kB / 397.1 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005656/0.336, allocations: 0.6009 MB / 397.7 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003362/0.3363, allocations: 148.2 kB / 397.8 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.3365, allocations: 75.95 kB / 397.9 MB, free: 45.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.3365, allocations: 5.25 kB / 397.9 MB, free: 45.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.3366, allocations: 39.73 kB / 398 MB, free: 45.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.134e-06/0.3366, allocations: 0 / 398 MB, free: 45.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005156/0.3371, allocations: 188 kB / 398.1 MB, free: 45.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.3372, allocations: 110.2 kB / 398.2 MB, free: 45.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.439e-05/0.3373, allocations: 143.7 kB / 398.4 MB, free: 44.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.3373, allocations: 26.8 kB / 398.4 MB, free: 44.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.345e-05/0.3373, allocations: 117.5 kB / 398.5 MB, free: 44.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.3374, allocations: 24.02 kB / 398.6 MB, free: 44.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/0.3374, allocations: 37.7 kB / 398.6 MB, free: 44.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.484e-05/0.3375, allocations: 325.5 kB / 398.9 MB, free: 44.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3376, allocations: 37.28 kB / 398.9 MB, free: 44.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.3378, allocations: 135.3 kB / 399.1 MB, free: 44.3 MB / 318.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004649/0.3382, allocations: 276.2 kB / 399.3 MB, free: 44.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3383, allocations: 1.219 kB / 399.3 MB, free: 44.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003757/0.3386, allocations: 209.4 kB / 399.5 MB, free: 43.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3387, allocations: 5.562 kB / 399.6 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3387, allocations: 4.688 kB / 399.6 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.3387, allocations: 4.656 kB / 399.6 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.3389, allocations: 54.98 kB / 399.6 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3389, allocations: 4.312 kB / 399.6 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.339, allocations: 21.12 kB / 399.6 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.339, allocations: 11.7 kB / 399.7 MB, free: 43.86 MB / 318.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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 () * Number of clocked states: 1 (PI.x) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.3391, allocations: 138.7 kB / 399.8 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.3393, allocations: 92.28 kB / 399.9 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.154e-05/0.3393, allocations: 15 kB / 399.9 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.3394, allocations: 7.297 kB / 399.9 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.3394, allocations: 1.062 kB / 399.9 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3394, allocations: 4.094 kB / 399.9 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.3396, allocations: 208.2 kB / 400.1 MB, free: 43.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3396, allocations: 0 / 400.1 MB, free: 43.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.3398, allocations: 40.38 kB / 400.1 MB, free: 43.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.3398, allocations: 2.094 kB / 400.2 MB, free: 43.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.3399, allocations: 5.219 kB / 400.2 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.3399, allocations: 5.391 kB / 400.2 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3399, allocations: 5.312 kB / 400.2 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000525/0.3404, allocations: 382.7 kB / 400.5 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.385e-05/0.3405, allocations: 92.75 kB / 400.6 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.3405, allocations: 6.5 kB / 400.6 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.3406, allocations: 9.125 kB / 400.6 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.3407, allocations: 6.547 kB / 400.7 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.3407, allocations: 10.75 kB / 400.7 MB, free: 42.97 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.314e-05/0.3407, allocations: 99.52 kB / 400.8 MB, free: 42.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3408, allocations: 1.188 kB / 400.8 MB, free: 42.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003328/0.3411, allocations: 32.84 kB / 400.8 MB, free: 42.88 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 (15): * Single equations (assignments): 15 * 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 8.923e-05/0.3412, allocations: 100.5 kB / 400.9 MB, free: 42.78 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003669/0.3416, allocations: 133.8 kB / 401 MB, free: 42.72 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3416, allocations: 1.125 kB / 401 MB, free: 42.72 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.3417, allocations: 32.25 kB / 401.1 MB, free: 42.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000546/0.3422, allocations: 67.66 kB / 401.1 MB, free: 42.67 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008076/0.3431, allocations: 432.5 kB / 401.5 MB, free: 42.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001615/0.3432, allocations: 0.7134 MB / 402.3 MB, free: 41.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.299e-05/0.3433, allocations: 14.92 kB / 402.3 MB, free: 41.61 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.648e-05/0.3433, allocations: 14.62 kB / 402.3 MB, free: 41.6 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3433, allocations: 0 / 402.3 MB, free: 41.6 MB / 318.1 MB Notification: Performance of Templates: time 0.004552/0.3479, allocations: 1.322 MB / 403.6 MB, free: 40.95 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches