Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001345/0.001345, allocations: 184.6 kB / 16.45 MB, free: 5.656 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.495/1.495, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007602/0.0007602, allocations: 86.31 kB / 270.9 MB, free: 8.348 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.1376/0.1376, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004535/0.0004534, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09207/0.09255, allocations: 50.38 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002131/0.09473, allocations: 1.676 MB / 444 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.09577, allocations: 0.5895 MB / 444.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.09594, allocations: 7.938 kB / 444.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.09606, allocations: 7.922 kB / 444.6 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.09625, allocations: 35.78 kB / 444.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.09662, allocations: 59.86 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001643/0.09679, allocations: 119.6 kB / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.09695, allocations: 33.53 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.972e-05/0.09706, allocations: 47.78 kB / 444.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.738e-05/0.09715, allocations: 43.78 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.09719, allocations: 8 kB / 445 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.393e-05/0.09722, allocations: 4 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.9e-05/0.09728, allocations: 35.78 kB / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.859e-05/0.09733, allocations: 45.64 kB / 445.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.09747, allocations: 96.02 kB / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.09748, allocations: 0 / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.09749, allocations: 0 / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.0975, allocations: 0 / 445.2 MB, free: 13.62 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.0005409/0.09805, allocations: 438.8 kB / 445.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.0981, allocations: 12.03 kB / 445.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.974e-05/0.09815, allocations: 23.66 kB / 445.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.09834, allocations: 214.7 kB / 445.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.09836, allocations: 8 kB / 445.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.0984, allocations: 19.98 kB / 445.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004469/0.09885, allocations: 255.8 kB / 446.1 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.09888, allocations: 3.938 kB / 446.1 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.0989, allocations: 12 kB / 446.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.09891, allocations: 0 / 446.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002459/0.09917, allocations: 95.88 kB / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004979/0.09967, allocations: 0.6037 MB / 446.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.1, allocations: 151.9 kB / 447 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.1001, allocations: 78.64 kB / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.1002, allocations: 7.984 kB / 447.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.48e-05/0.1002, allocations: 42.5 kB / 447.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.1002, allocations: 0 / 447.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004934/0.1007, allocations: 197.5 kB / 447.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.1008, allocations: 110.8 kB / 447.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.1009, allocations: 163 kB / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.1009, allocations: 29.7 kB / 447.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.1009, allocations: 112.5 kB / 447.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.101, allocations: 28.02 kB / 447.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.842e-06/0.101, allocations: 4 kB / 447.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.157e-05/0.101, allocations: 326.9 kB / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.1012, allocations: 36.36 kB / 448.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.1013, allocations: 146.3 kB / 448.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.1015, allocations: 59.97 kB / 448.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1015, allocations: 8 kB / 448.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003461/0.1018, allocations: 205.3 kB / 448.5 MB, free: 9.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.1019, allocations: 4 kB / 448.5 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1019, allocations: 4 kB / 448.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.1019, allocations: 11.94 kB / 448.5 MB, free: 9.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.1021, allocations: 51.91 kB / 448.6 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1021, allocations: 4 kB / 448.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.1022, allocations: 28.14 kB / 448.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.1022, allocations: 12 kB / 448.6 MB, free: 9.832 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.314e-05/0.1023, allocations: 129.7 kB / 448.7 MB, free: 9.695 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.1024, allocations: 97.62 kB / 448.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.889e-05/0.1025, allocations: 20.7 kB / 448.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1026, allocations: 11.98 kB / 448.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1026, allocations: 0 / 448.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1026, allocations: 0 / 448.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002207/0.1028, allocations: 217.6 kB / 449.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.1028, allocations: 4 kB / 449.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001841/0.103, allocations: 39.92 kB / 449.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.103, allocations: 3.953 kB / 449.1 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.103, allocations: 7.984 kB / 449.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1031, allocations: 0 / 449.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1031, allocations: 4 kB / 449.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004862/0.1035, allocations: 395.3 kB / 449.5 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.083e-05/0.1036, allocations: 109 kB / 449.6 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.361e-05/0.1037, allocations: 7.953 kB / 449.6 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.1038, allocations: 8 kB / 449.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.501e-05/0.1038, allocations: 11.92 kB / 449.7 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.1039, allocations: 4 kB / 449.7 MB, free: 8.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.324e-05/0.1039, allocations: 115.2 kB / 449.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1039, allocations: 0 / 449.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002921/0.1042, allocations: 27.94 kB / 449.8 MB, free: 8.539 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 (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.0001078/0.1044, allocations: 103.2 kB / 449.9 MB, free: 8.426 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000314/0.1047, allocations: 136.6 kB / 450 MB, free: 8.293 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1047, allocations: 0 / 450 MB, free: 8.293 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.657e-05/0.1048, allocations: 35.92 kB / 450.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.1053, allocations: 59.86 kB / 450.1 MB, free: 8.199 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006965/0.106, allocations: 0.5307 MB / 450.7 MB, free: 7.625 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.1062, allocations: 0.7206 MB / 451.4 MB, free: 6.879 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.1062, allocations: 15.44 kB / 451.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1062, allocations: 0 / 451.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of Templates: time 0.002965/0.1092, allocations: 1.602 MB / 453 MB, free: 5.266 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches