Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007008/0.0007009, allocations: 102.7 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007152/0.0007152, allocations: 183.1 kB / 16.97 MB, free: 6.875 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.158/1.158, allocations: 205.4 MB / 223.1 MB, free: 5.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0601/0.0601, allocations: 12.6 MB / 284 MB, free: 8.82 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.0006225/0.0006225, allocations: 19.98 kB / 345.2 MB, free: 20.94 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07083/0.07146, allocations: 50.39 MB / 395.6 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001986/0.07348, allocations: 1.727 MB / 397.3 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008815/0.07438, allocations: 0.5815 MB / 397.9 MB, free: 128 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.07451, allocations: 7.938 kB / 397.9 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.091e-05/0.0746, allocations: 15.92 kB / 397.9 MB, free: 104 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.07475, allocations: 27.77 kB / 397.9 MB, free: 76 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.07501, allocations: 55.89 kB / 398 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.07517, allocations: 123.6 kB / 398.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.0753, allocations: 57.5 kB / 398.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.592e-05/0.07538, allocations: 43.8 kB / 398.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.268e-05/0.07546, allocations: 43.72 kB / 398.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.07548, allocations: 4 kB / 398.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.827e-05/0.07551, allocations: 8 kB / 398.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.975e-05/0.07556, allocations: 23.84 kB / 398.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.779e-05/0.07564, allocations: 93.25 kB / 398.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.07577, allocations: 119.8 kB / 398.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.07578, allocations: 0 / 398.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.07579, allocations: 0 / 398.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.646e-06/0.0758, allocations: 8 kB / 398.5 MB, free: 15.5 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004987/0.0763, allocations: 431 kB / 398.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.07634, allocations: 8.031 kB / 398.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.113e-05/0.07639, allocations: 24.66 kB / 398.9 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.07658, allocations: 223.9 kB / 399.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.0766, allocations: 12.38 kB / 399.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.07664, allocations: 12.38 kB / 399.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/0.0771, allocations: 258.8 kB / 399.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.07712, allocations: 0 / 399.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.07714, allocations: 8 kB / 399.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.07715, allocations: 4 kB / 399.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002459/0.0774, allocations: 107.8 kB / 399.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005432/0.07795, allocations: 0.5998 MB / 400.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.07827, allocations: 147.9 kB / 400.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.07844, allocations: 86.62 kB / 400.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.07847, allocations: 4 kB / 400.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.0785, allocations: 38.5 kB / 400.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.0785, allocations: 0 / 400.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004855/0.07899, allocations: 197.4 kB / 400.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.07906, allocations: 118.7 kB / 400.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.07918, allocations: 158.9 kB / 400.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.0792, allocations: 33.83 kB / 400.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.147e-05/0.07926, allocations: 116.2 kB / 401 MB, free: 12.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.07929, allocations: 23.7 kB / 401 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.07932, allocations: 21.72 kB / 401.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.425e-05/0.07941, allocations: 322.8 kB / 401.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.07953, allocations: 39.97 kB / 401.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.07969, allocations: 145.7 kB / 401.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.07997, allocations: 201.6 kB / 401.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.07998, allocations: 0 / 401.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003557/0.08035, allocations: 213.1 kB / 402 MB, free: 11.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.08037, allocations: 8 kB / 402 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.08038, allocations: 4 kB / 402 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.0804, allocations: 4.469 kB / 402 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.08054, allocations: 47.92 kB / 402 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.08056, allocations: 11.92 kB / 402 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.08067, allocations: 27.78 kB / 402.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.08069, allocations: 8 kB / 402.1 MB, free: 11.5 MB / 302.1 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 () * 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 9.254e-05/0.08079, allocations: 141.7 kB / 402.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.08092, allocations: 97.75 kB / 402.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.884e-05/0.08101, allocations: 20.72 kB / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.08102, allocations: 0 / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.08104, allocations: 11.98 kB / 402.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.08104, allocations: 0 / 402.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002286/0.08128, allocations: 213.5 kB / 402.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.08129, allocations: 0 / 402.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.08146, allocations: 39.97 kB / 402.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.08147, allocations: 0 / 402.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.08148, allocations: 8 kB / 402.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.08149, allocations: 0 / 402.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.0815, allocations: 4 kB / 402.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004776/0.08198, allocations: 403.2 kB / 403 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.177e-05/0.08205, allocations: 108.9 kB / 403.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.08208, allocations: 0 / 403.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.08221, allocations: 15.98 kB / 403.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.075e-05/0.08225, allocations: 4 kB / 403.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.958e-06/0.08227, allocations: 7.984 kB / 403.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.162e-05/0.08235, allocations: 119.3 kB / 403.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08236, allocations: 0 / 403.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.08266, allocations: 24 kB / 403.3 MB, free: 10.2 MB / 302.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 7.094e-05/0.08274, allocations: 99.19 kB / 403.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002902/0.08303, allocations: 128.1 kB / 403.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.08304, allocations: 0 / 403.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.421e-05/0.08314, allocations: 36.59 kB / 403.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.08359, allocations: 71.8 kB / 403.6 MB, free: 9.859 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006228/0.08422, allocations: 0.5134 MB / 404.1 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.08446, allocations: 0.7243 MB / 404.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.516e-05/0.08451, allocations: 17.41 kB / 404.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.064e-05/0.08455, allocations: 15.81 kB / 404.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08456, allocations: 0 / 404.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of Templates: time 0.003145/0.08771, allocations: 1.198 MB / 406.1 MB, free: 7.332 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches