Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008593/0.0008592, allocations: 97.89 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009388/0.0009388, allocations: 203.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002458, allocations: 11.98 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002641/0.1163, allocations: 1.681 MB / 359.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.1174, allocations: 0.5692 MB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.1175, allocations: 7.938 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.974e-05/0.1176, allocations: 11.86 kB / 360.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.1178, allocations: 35.88 kB / 360.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.1181, allocations: 59.81 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.1183, allocations: 87.83 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1185, allocations: 45.39 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.281e-05/0.1185, allocations: 43.83 kB / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.819e-05/0.1186, allocations: 43.72 kB / 360.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.1187, allocations: 8 kB / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.139e-05/0.1187, allocations: 4 kB / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.542e-05/0.1187, allocations: 27.91 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.825e-05/0.1188, allocations: 49.64 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.1189, allocations: 96.02 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1189, allocations: 0 / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.119, allocations: 3.938 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.119, allocations: 0 / 360.8 MB, free: 11.14 MB / 302.1 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.000737/0.1197, allocations: 434.7 kB / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.1198, allocations: 12.03 kB / 361.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.359e-05/0.1198, allocations: 19.72 kB / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.1201, allocations: 218.2 kB / 361.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.1202, allocations: 8 kB / 361.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.378e-05/0.1202, allocations: 15.95 kB / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000594/0.1208, allocations: 252.8 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1208, allocations: 0 / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.1209, allocations: 8 kB / 361.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1209, allocations: 0 / 361.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002665/0.1212, allocations: 103.9 kB / 361.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008031/0.122, allocations: 0.6037 MB / 362.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.1223, allocations: 147.9 kB / 362.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.1224, allocations: 8.078 kB / 362.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.1224, allocations: 38.56 kB / 362.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.482e-06/0.1224, allocations: 0 / 362.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005436/0.123, allocations: 197.6 kB / 362.9 MB, free: 8.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.127e-05/0.1231, allocations: 110.9 kB / 363 MB, free: 8.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.1232, allocations: 160.6 kB / 363.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.1232, allocations: 29.7 kB / 363.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.493e-05/0.1233, allocations: 124.5 kB / 363.3 MB, free: 8.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.82e-05/0.1234, allocations: 23.66 kB / 363.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-06/0.1234, allocations: 8 kB / 363.3 MB, free: 8.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1235, allocations: 318.8 kB / 363.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.1236, allocations: 44.28 kB / 363.7 MB, free: 8.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.1238, allocations: 142.5 kB / 363.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.124, allocations: 67.92 kB / 363.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.124, allocations: 0 / 363.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003608/0.1243, allocations: 205.1 kB / 364.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.1244, allocations: 8 kB / 364.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1244, allocations: 4 kB / 364.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1244, allocations: 4 kB / 364.1 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.1246, allocations: 52.33 kB / 364.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.1246, allocations: 15.94 kB / 364.1 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.1247, allocations: 23.83 kB / 364.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.1247, allocations: 8 kB / 364.2 MB, free: 7.449 MB / 302.1 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 0.0001241/0.1249, allocations: 130.4 kB / 364.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.125, allocations: 93.44 kB / 364.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.515e-05/0.1251, allocations: 20.7 kB / 364.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.1251, allocations: 4 kB / 364.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.1252, allocations: 7.953 kB / 364.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1252, allocations: 0 / 364.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002719/0.1254, allocations: 213.5 kB / 364.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1254, allocations: 0 / 364.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.1256, allocations: 39.92 kB / 364.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1256, allocations: 0 / 364.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1256, allocations: 4 kB / 364.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1257, allocations: 4 kB / 364.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1257, allocations: 0 / 364.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005569/0.1262, allocations: 426.7 kB / 365.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.348e-05/0.1263, allocations: 105.2 kB / 365.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.1264, allocations: 11.95 kB / 365.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.1265, allocations: 12.09 kB / 365.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.1266, allocations: 15.91 kB / 365.2 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.1266, allocations: 8.062 kB / 365.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001028/0.1267, allocations: 123.4 kB / 365.4 MB, free: 6.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1267, allocations: 0 / 365.4 MB, free: 6.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003142/0.127, allocations: 27.94 kB / 365.4 MB, free: 6.113 MB / 302.1 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.0001193/0.1271, allocations: 95.25 kB / 365.5 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003647/0.1275, allocations: 135.7 kB / 365.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1275, allocations: 0 / 365.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.856e-05/0.1276, allocations: 32.86 kB / 365.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004001/0.128, allocations: 67.94 kB / 365.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000797/0.1288, allocations: 0.5016 MB / 366.2 MB, free: 5.238 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.1292, allocations: 0.7245 MB / 366.9 MB, free: 4.484 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.28e-05/0.1292, allocations: 13.42 kB / 367 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.1293, allocations: 11.44 kB / 367 MB, free: 4.461 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1293, allocations: 0 / 367 MB, free: 4.461 MB / 302.1 MB Notification: Performance of Templates: time 0.003932/0.1332, allocations: 1.153 MB / 368.1 MB, free: 3.348 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches