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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001217/0.001217, allocations: 168.9 kB / 16.8 MB, free: 4.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.4 MB / 223 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007564/0.0007566, allocations: 96.3 kB / 271.3 MB, free: 8.242 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.07199/0.072, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003326, allocations: 8 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.08128, allocations: 50.37 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001948/0.08328, allocations: 1.727 MB / 445.4 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009705/0.08429, allocations: 0.5931 MB / 446 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.08448, allocations: 4 kB / 446 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.08461, allocations: 11.86 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002122/0.08483, allocations: 31.84 kB / 446.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002884/0.08513, allocations: 55.89 kB / 446.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.08529, allocations: 123.6 kB / 446.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.08542, allocations: 41.53 kB / 446.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.381e-05/0.08549, allocations: 51.72 kB / 446.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.653e-05/0.08557, allocations: 47.72 kB / 446.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.0856, allocations: 7.984 kB / 446.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.856e-05/0.08562, allocations: 4 kB / 446.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.425e-05/0.08568, allocations: 23.92 kB / 446.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.855e-05/0.08575, allocations: 85.25 kB / 446.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.08586, allocations: 100 kB / 446.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.08587, allocations: 0 / 446.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.08588, allocations: 0 / 446.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.08589, allocations: 0 / 446.6 MB, free: 12.51 MB / 298.7 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.0004934/0.08639, allocations: 435 kB / 447 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.08643, allocations: 11.97 kB / 447 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.35e-05/0.08648, allocations: 24.66 kB / 447 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.08665, allocations: 208 kB / 447.2 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.08667, allocations: 16.31 kB / 447.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.831e-05/0.08671, allocations: 20.36 kB / 447.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004029/0.08712, allocations: 260.2 kB / 447.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.08714, allocations: 3.938 kB / 447.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.08716, allocations: 3.984 kB / 447.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.08717, allocations: 7.984 kB / 447.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.08741, allocations: 95.88 kB / 447.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004629/0.08788, allocations: 0.5998 MB / 448.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.08817, allocations: 155.7 kB / 448.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.08832, allocations: 82.77 kB / 448.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.08835, allocations: 8 kB / 448.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.08838, allocations: 38.56 kB / 448.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.884e-06/0.08839, allocations: 0 / 448.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.000457/0.08885, allocations: 209.2 kB / 448.7 MB, free: 10.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.0889, allocations: 110.8 kB / 448.8 MB, free: 9.992 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.377e-05/0.089, allocations: 163.1 kB / 449 MB, free: 9.824 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.08901, allocations: 25.7 kB / 449 MB, free: 9.793 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.659e-05/0.08905, allocations: 116.3 kB / 449.1 MB, free: 9.676 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.08908, allocations: 27.7 kB / 449.2 MB, free: 9.648 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-06/0.08909, allocations: 8 kB / 449.2 MB, free: 9.641 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.15e-05/0.08914, allocations: 318.8 kB / 449.5 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.08925, allocations: 43.97 kB / 449.5 MB, free: 9.277 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.08938, allocations: 149.6 kB / 449.7 MB, free: 9.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.08961, allocations: 197.5 kB / 449.9 MB, free: 8.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.08962, allocations: 0 / 449.9 MB, free: 8.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003102/0.08993, allocations: 213.1 kB / 450.1 MB, free: 8.625 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.08996, allocations: 4 kB / 450.1 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.08997, allocations: 4 kB / 450.1 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.08999, allocations: 4 kB / 450.1 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.09013, allocations: 56.38 kB / 450.1 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.09015, allocations: 4 kB / 450.1 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.587e-05/0.09025, allocations: 28.2 kB / 450.2 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.09027, allocations: 8 kB / 450.2 MB, free: 8.52 MB / 298.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 () * 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 7.033e-05/0.09034, allocations: 137.7 kB / 450.3 MB, free: 8.375 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.09047, allocations: 101.3 kB / 450.4 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.043e-05/0.09056, allocations: 16.72 kB / 450.4 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.09057, allocations: 8 kB / 450.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.09058, allocations: 0 / 450.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.09058, allocations: 4.219 kB / 450.4 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.09078, allocations: 209.5 kB / 450.6 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.09079, allocations: 4 kB / 450.6 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.09096, allocations: 35.97 kB / 450.7 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.09097, allocations: 11.92 kB / 450.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.09099, allocations: 0 / 450.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.091, allocations: 0 / 450.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.091, allocations: 4 kB / 450.7 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004167/0.09142, allocations: 403.2 kB / 451.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.98e-05/0.09148, allocations: 108.9 kB / 451.2 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.09151, allocations: 8 kB / 451.2 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.09165, allocations: 11.92 kB / 451.2 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.898e-05/0.09169, allocations: 11.94 kB / 451.2 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.09171, allocations: 4 kB / 451.2 MB, free: 7.359 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.712e-05/0.09177, allocations: 127.3 kB / 451.4 MB, free: 7.234 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09178, allocations: 0 / 451.4 MB, free: 7.234 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002819/0.09206, allocations: 24 kB / 451.4 MB, free: 7.211 MB / 298.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 () * 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 6.92e-05/0.09214, allocations: 91.25 kB / 451.5 MB, free: 7.109 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002731/0.09242, allocations: 132.4 kB / 451.6 MB, free: 6.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.09243, allocations: 0 / 451.6 MB, free: 6.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.085e-05/0.09252, allocations: 35.97 kB / 451.6 MB, free: 6.945 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.09299, allocations: 64.12 kB / 451.7 MB, free: 6.883 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005942/0.09359, allocations: 0.5506 MB / 452.2 MB, free: 6.289 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000137/0.09374, allocations: 0.7204 MB / 453 MB, free: 5.543 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.598e-05/0.09378, allocations: 19.44 kB / 453 MB, free: 5.523 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.09379, allocations: 3.938 kB / 453 MB, free: 5.52 MB / 298.7 MB Notification: Performance of Templates: time 0.002361/0.09616, allocations: 1.589 MB / 454.6 MB, free: 3.934 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (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) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/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