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.001085/0.001084, allocations: 173.3 kB / 16.76 MB, free: 4.93 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.607/1.607, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007809/0.0007807, allocations: 85.36 kB / 271.3 MB, free: 8.246 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.115/0.115, allocations: 12.6 MB / 332.1 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004258/0.000426, allocations: 12 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1002, allocations: 50.37 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00209/0.1024, allocations: 1.692 MB / 444.6 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008654/0.1032, allocations: 0.5661 MB / 445.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.1034, allocations: 7.938 kB / 445.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.1035, allocations: 11.86 kB / 445.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.1037, allocations: 23.84 kB / 445.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.1039, allocations: 63.81 kB / 445.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.1041, allocations: 123.6 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.1042, allocations: 45.48 kB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.635e-05/0.1043, allocations: 39.84 kB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.1044, allocations: 51.72 kB / 445.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.1044, allocations: 4 kB / 445.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.031e-05/0.1044, allocations: 4 kB / 445.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.515e-05/0.1045, allocations: 23.91 kB / 445.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.286e-05/0.1046, allocations: 85.36 kB / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.1047, allocations: 96.03 kB / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1047, allocations: 0 / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1047, allocations: 0 / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.1047, allocations: 0 / 445.8 MB, free: 13.27 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.00052/0.1052, allocations: 438.9 kB / 446.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1053, allocations: 8.031 kB / 446.2 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.1053, allocations: 28.59 kB / 446.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.1055, allocations: 220 kB / 446.5 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.1056, allocations: 12.38 kB / 446.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.096e-05/0.1056, allocations: 12.38 kB / 446.5 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004483/0.106, allocations: 262.7 kB / 446.7 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.1061, allocations: 0 / 446.7 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1061, allocations: 8 kB / 446.7 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1061, allocations: 4 kB / 446.8 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002331/0.1063, allocations: 95.88 kB / 446.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004963/0.1068, allocations: 0.5998 MB / 447.4 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.1072, allocations: 151.8 kB / 447.6 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.1073, allocations: 82.62 kB / 447.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.1073, allocations: 4 kB / 447.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.1074, allocations: 38.56 kB / 447.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.1074, allocations: 0 / 447.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004932/0.1079, allocations: 205.5 kB / 447.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.1079, allocations: 110.9 kB / 448 MB, free: 10.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.108, allocations: 163 kB / 448.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.1081, allocations: 33.7 kB / 448.2 MB, free: 10.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.352e-05/0.1081, allocations: 116.3 kB / 448.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.1081, allocations: 31.62 kB / 448.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.1081, allocations: 4 kB / 448.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.48e-05/0.1082, allocations: 322.8 kB / 448.7 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1083, allocations: 43.97 kB / 448.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.1084, allocations: 137.7 kB / 448.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002321/0.1087, allocations: 201.5 kB / 449.1 MB, free: 9.609 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1087, allocations: 0 / 449.1 MB, free: 9.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003198/0.109, allocations: 205.1 kB / 449.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.1091, allocations: 8.469 kB / 449.3 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1091, allocations: 8.234 kB / 449.3 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.1091, allocations: 7.938 kB / 449.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.1093, allocations: 47.91 kB / 449.3 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.1093, allocations: 8 kB / 449.3 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.871e-05/0.1094, allocations: 23.83 kB / 449.4 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.1094, allocations: 19.97 kB / 449.4 MB, free: 9.281 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.896e-05/0.1095, allocations: 137.7 kB / 449.5 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.1096, allocations: 97.38 kB / 449.6 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.1098, allocations: 20.7 kB / 449.6 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1098, allocations: 0 / 449.6 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1098, allocations: 4 kB / 449.6 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1098, allocations: 0 / 449.6 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.11, allocations: 209.5 kB / 449.8 MB, free: 8.758 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.11, allocations: 3.984 kB / 449.8 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.1102, allocations: 39.92 kB / 449.9 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1102, allocations: 4 kB / 449.9 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.1102, allocations: 8 kB / 449.9 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1102, allocations: 0 / 449.9 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1102, allocations: 0 / 449.9 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004513/0.1107, allocations: 400.3 kB / 450.3 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.1107, allocations: 108.9 kB / 450.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.1108, allocations: 7.984 kB / 450.4 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.1109, allocations: 12 kB / 450.4 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.084e-05/0.1109, allocations: 8.047 kB / 450.4 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.111, allocations: 4 kB / 450.4 MB, free: 8.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.665e-05/0.111, allocations: 119.2 kB / 450.5 MB, free: 8.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.111, allocations: 0 / 450.5 MB, free: 8.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002894/0.1113, allocations: 27.94 kB / 450.6 MB, free: 7.992 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 8.561e-05/0.1114, allocations: 95.25 kB / 450.7 MB, free: 7.887 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000299/0.1117, allocations: 131.7 kB / 450.8 MB, free: 7.758 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1117, allocations: 4 kB / 450.8 MB, free: 7.754 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.937e-05/0.1118, allocations: 36.86 kB / 450.8 MB, free: 7.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004734/0.1123, allocations: 59.8 kB / 450.9 MB, free: 7.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006319/0.113, allocations: 0.5423 MB / 451.4 MB, free: 7.074 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.1131, allocations: 0.7204 MB / 452.1 MB, free: 6.328 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.749e-05/0.1132, allocations: 11.44 kB / 452.2 MB, free: 6.316 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1132, allocations: 4 kB / 452.2 MB, free: 6.312 MB / 298.7 MB Notification: Performance of Templates: time 0.002694/0.1159, allocations: 1.593 MB / 453.8 MB, free: 4.723 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