Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001417/0.001417, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.179/2.179, allocations: 205.3 MB / 213.8 MB, free: 13.76 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.001117/0.001117, allocations: 87.62 kB / 261.8 MB, free: 13.44 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.1093/0.1093, allocations: 12.59 MB / 322.3 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.255e-05/2.261e-05, allocations: 0 / 378.9 MB, free: 75.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09352/0.09358, allocations: 50.38 MB / 429.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4625/0.5561, allocations: 79.23 MB / 0.4966 GB, free: 12.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.5564, allocations: 70.61 kB / 0.4967 GB, free: 12.1 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008977/0.5654, allocations: 2.329 MB / 0.499 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5655, allocations: 0 / 0.499 GB, free: 11.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.5655, allocations: 4 kB / 0.499 GB, free: 11.67 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005651/0.5661, allocations: 403.6 kB / 0.4993 GB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.5662, allocations: 7.812 kB / 0.4993 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.5662, allocations: 15.56 kB / 0.4994 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.5665, allocations: 199.2 kB / 0.4996 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.5665, allocations: 7.734 kB / 0.4996 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.531e-05/0.5665, allocations: 15.62 kB / 0.4996 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002101/0.5668, allocations: 61.59 kB / 0.4996 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.5672, allocations: 214.9 kB / 0.4998 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.5673, allocations: 0 / 0.4998 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.5673, allocations: 0 / 0.4998 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.5673, allocations: 3.844 kB / 0.4998 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007117/0.5681, allocations: 0.5613 MB / 0.5004 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003323/0.5684, allocations: 120.8 kB / 0.5005 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.5685, allocations: 63.8 kB / 0.5006 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.822e-05/0.5686, allocations: 11.83 kB / 0.5006 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.5686, allocations: 37.3 kB / 0.5006 GB, free: 10.33 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.245e-06/0.5686, allocations: 0 / 0.5006 GB, free: 10.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.000328/0.569, allocations: 109.6 kB / 0.5007 GB, free: 10.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.569, allocations: 113.5 kB / 0.5008 GB, free: 10.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.254e-05/0.5691, allocations: 109.9 kB / 0.5009 GB, free: 10.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.5692, allocations: 29.73 kB / 0.501 GB, free: 10.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.5692, allocations: 116.9 kB / 0.5011 GB, free: 9.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.583e-05/0.5693, allocations: 25.34 kB / 0.5011 GB, free: 9.914 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.5693, allocations: 0 / 0.5011 GB, free: 9.914 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.421e-05/0.5694, allocations: 320.3 kB / 0.5014 GB, free: 9.602 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.782e-05/0.5694, allocations: 22.69 kB / 0.5014 GB, free: 9.598 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.5695, allocations: 117.4 kB / 0.5015 GB, free: 9.469 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.066e-05/0.5696, allocations: 43.97 kB / 0.5016 GB, free: 9.461 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5697, allocations: 0 / 0.5016 GB, free: 9.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000281/0.5699, allocations: 141.5 kB / 0.5017 GB, free: 9.406 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.57, allocations: 11.02 kB / 0.5017 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.537e-06/0.57, allocations: 3.906 kB / 0.5017 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.57, allocations: 7.797 kB / 0.5017 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.5703, allocations: 52.55 kB / 0.5018 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.5703, allocations: 11.81 kB / 0.5018 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.5705, allocations: 22.5 kB / 0.5018 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.5706, allocations: 11.58 kB / 0.5018 GB, free: 9.379 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.694e-05/0.5706, allocations: 110.9 kB / 0.5019 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.5709, allocations: 86.11 kB / 0.502 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.458e-05/0.571, allocations: 10.12 kB / 0.502 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.571, allocations: 3.844 kB / 0.502 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.571, allocations: 7.953 kB / 0.502 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.571, allocations: 3.906 kB / 0.502 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.5713, allocations: 180.5 kB / 0.5022 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5713, allocations: 0 / 0.5022 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.5717, allocations: 37.55 kB / 0.5022 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.5717, allocations: 0 / 0.5022 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.5717, allocations: 0 / 0.5022 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.5717, allocations: 7.844 kB / 0.5023 GB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5717, allocations: 3.938 kB / 0.5023 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003974/0.5721, allocations: 368.4 kB / 0.5026 GB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.261e-05/0.5722, allocations: 84.89 kB / 0.5027 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.5722, allocations: 0 / 0.5027 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.5725, allocations: 18.38 kB / 0.5027 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.348e-05/0.5725, allocations: 9.5 kB / 0.5027 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.5725, allocations: 0 / 0.5027 GB, free: 8.676 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.438e-05/0.5726, allocations: 97.39 kB / 0.5028 GB, free: 8.602 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5726, allocations: 0 / 0.5028 GB, free: 8.602 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004473/0.5731, allocations: 26.72 kB / 0.5028 GB, free: 8.598 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001258/0.5732, allocations: 100.8 kB / 0.5029 GB, free: 8.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002277/0.5735, allocations: 86.16 kB / 0.503 GB, free: 8.488 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.5735, allocations: 0 / 0.503 GB, free: 8.488 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.681e-05/0.5735, allocations: 14.72 kB / 0.503 GB, free: 8.488 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.574, allocations: 45.66 kB / 0.5031 GB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006814/0.5747, allocations: 284.5 kB / 0.5033 GB, free: 8.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.5749, allocations: 0.7175 MB / 0.504 GB, free: 7.582 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.228e-05/0.575, allocations: 16.28 kB / 0.5041 GB, free: 7.574 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.234e-05/0.575, allocations: 18.47 kB / 0.5041 GB, free: 7.566 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5751, allocations: 384 / 0.5041 GB, free: 7.566 MB / 330.7 MB Notification: Performance of Templates: time 0.004431/0.5795, allocations: 0.9827 MB / 0.505 GB, free: 7.469 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches