Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00142/0.00142, allocations: 173.2 kB / 16.76 MB, free: 5.055 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.209/1.209, allocations: 205 MB / 222.6 MB, free: 9.141 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.0007013/0.0007013, allocations: 91.27 kB / 270.5 MB, free: 8.672 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.06447/0.06447, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003281, allocations: 8 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06974/0.07009, allocations: 49.98 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001711/0.07185, allocations: 1.719 MB / 443.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006696/0.07253, allocations: 0.5269 MB / 443.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.93e-05/0.07264, allocations: 7.938 kB / 443.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.07275, allocations: 11.92 kB / 443.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-05/0.07282, allocations: 19.78 kB / 444 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.07308, allocations: 51.95 kB / 444 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.0732, allocations: 119.6 kB / 444.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.07333, allocations: 48.88 kB / 444.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.412e-05/0.07339, allocations: 39.86 kB / 444.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.254e-05/0.07346, allocations: 51.64 kB / 444.3 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.07348, allocations: 4 kB / 444.3 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.602e-05/0.0735, allocations: 4 kB / 444.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.116e-05/0.07353, allocations: 15.92 kB / 444.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.733e-05/0.07358, allocations: 51.67 kB / 444.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.715e-05/0.07368, allocations: 84.05 kB / 444.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.07369, allocations: 0 / 444.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.0737, allocations: 4 kB / 444.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.07371, allocations: 0 / 444.4 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004752/0.07419, allocations: 411.1 kB / 444.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.07423, allocations: 12.03 kB / 444.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.12e-05/0.07428, allocations: 12.75 kB / 444.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.07445, allocations: 208.1 kB / 445.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.07448, allocations: 12.38 kB / 445.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.07451, allocations: 12.38 kB / 445.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003914/0.07491, allocations: 242.9 kB / 445.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.07493, allocations: 0 / 445.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.07495, allocations: 4 kB / 445.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.07496, allocations: 11.92 kB / 445.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.07519, allocations: 99.88 kB / 445.4 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004525/0.07565, allocations: 0.5881 MB / 446 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.07589, allocations: 155.9 kB / 446.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.07604, allocations: 82.53 kB / 446.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.07607, allocations: 0 / 446.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.292e-05/0.07608, allocations: 42.5 kB / 446.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.884e-06/0.07609, allocations: 3.984 kB / 446.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004636/0.07656, allocations: 189.4 kB / 446.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.07661, allocations: 118.9 kB / 446.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.951e-05/0.07669, allocations: 132.3 kB / 446.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-06/0.0767, allocations: 29.7 kB / 446.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.07674, allocations: 115.8 kB / 446.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.07677, allocations: 23.7 kB / 446.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.0768, allocations: 21.7 kB / 446.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.126e-05/0.07685, allocations: 326.8 kB / 447.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.07695, allocations: 39.97 kB / 447.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.07708, allocations: 140.8 kB / 447.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.07732, allocations: 192.6 kB / 447.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.07733, allocations: 0 / 447.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003071/0.07764, allocations: 201.2 kB / 447.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.07766, allocations: 4 kB / 447.8 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.07767, allocations: 4 kB / 447.8 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.07769, allocations: 8.375 kB / 447.8 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.07785, allocations: 47.92 kB / 447.9 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.07787, allocations: 7.984 kB / 447.9 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.34e-05/0.07797, allocations: 24.22 kB / 447.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.07798, allocations: 8 kB / 447.9 MB, free: 9.758 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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 6.875e-05/0.07806, allocations: 130.6 kB / 448 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.07818, allocations: 89.47 kB / 448.1 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.492e-05/0.07822, allocations: 24.64 kB / 448.1 MB, free: 9.504 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.07823, allocations: 4 kB / 448.1 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.07824, allocations: 0 / 448.1 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.07825, allocations: 4 kB / 448.1 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/0.07844, allocations: 201.5 kB / 448.3 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.07845, allocations: 0 / 448.3 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.0786, allocations: 31.98 kB / 448.4 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.07862, allocations: 0 / 448.4 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.07863, allocations: 15.92 kB / 448.4 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.07864, allocations: 7.938 kB / 448.4 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.07865, allocations: 0 / 448.4 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004046/0.07906, allocations: 387.5 kB / 448.8 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.52e-05/0.07909, allocations: 88.95 kB / 448.9 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.07912, allocations: 3.938 kB / 448.9 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.07925, allocations: 15.98 kB / 448.9 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.709e-05/0.07929, allocations: 11.98 kB / 448.9 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.07931, allocations: 4.062 kB / 448.9 MB, free: 8.656 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.526e-05/0.07935, allocations: 101.7 kB / 449 MB, free: 8.559 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07935, allocations: 4 kB / 449 MB, free: 8.555 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002941/0.07965, allocations: 27.91 kB / 449 MB, free: 8.527 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 (14): * Single equations (assignments): 14 * 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.196e-05/0.07972, allocations: 99.19 kB / 449.1 MB, free: 8.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002763/0.08, allocations: 127.8 kB / 449.3 MB, free: 8.293 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.08001, allocations: 0 / 449.3 MB, free: 8.293 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.189e-05/0.08011, allocations: 32.84 kB / 449.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.08057, allocations: 60.02 kB / 449.3 MB, free: 8.203 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006067/0.08119, allocations: 462 kB / 449.8 MB, free: 7.711 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.08132, allocations: 0.7086 MB / 450.5 MB, free: 6.977 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.332e-05/0.08136, allocations: 19.44 kB / 450.5 MB, free: 6.957 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.08137, allocations: 0 / 450.5 MB, free: 6.957 MB / 298.7 MB Notification: Performance of Templates: time 0.002364/0.08374, allocations: 1.467 MB / 452 MB, free: 5.492 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches