Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, allocations: 114.4 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00161/0.0016, allocations: 202 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3146, allocations: 50.54 MB / 409.9 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003758/0.3184, allocations: 2.015 MB / 411.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3195, allocations: 0.5609 MB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.3196, allocations: 4 kB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.3197, allocations: 23.8 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.3199, allocations: 27.72 kB / 412.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000245/0.3202, allocations: 55.88 kB / 412.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000197/0.3204, allocations: 123.6 kB / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.3206, allocations: 57.36 kB / 412.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.695e-05/0.3207, allocations: 51.8 kB / 412.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.504e-05/0.3208, allocations: 63.69 kB / 412.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.3208, allocations: 8 kB / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.591e-05/0.3208, allocations: 12 kB / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.252e-05/0.3209, allocations: 27.86 kB / 412.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.634e-05/0.321, allocations: 51.73 kB / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001937/0.3212, allocations: 143.3 kB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3212, allocations: 0 / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3212, allocations: 4 kB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3212, allocations: 0 / 413.1 MB, free: 14.41 MB / 334.1 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.0006486/0.3218, allocations: 420.4 kB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3219, allocations: 8.031 kB / 413.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.3219, allocations: 20.73 kB / 413.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.3222, allocations: 208.1 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.3222, allocations: 4.375 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.946e-05/0.3223, allocations: 24.36 kB / 413.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005186/0.3228, allocations: 250.4 kB / 414 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.3229, allocations: 7.938 kB / 414 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.3229, allocations: 8 kB / 414 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.3229, allocations: 0 / 414 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002568/0.3231, allocations: 87.88 kB / 414.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006632/0.3238, allocations: 0.5921 MB / 414.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.3242, allocations: 144 kB / 414.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.3244, allocations: 82.53 kB / 414.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.3244, allocations: 0 / 414.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.3244, allocations: 42.5 kB / 415 MB, free: 12.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.3244, allocations: 0 / 415 MB, free: 12.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005408/0.325, allocations: 189.2 kB / 415.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.52e-05/0.3251, allocations: 114.9 kB / 415.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.3252, allocations: 130 kB / 415.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.3252, allocations: 29.7 kB / 415.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.319e-05/0.3253, allocations: 108 kB / 415.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.3253, allocations: 23.66 kB / 415.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.649e-05/0.3254, allocations: 37.7 kB / 415.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3255, allocations: 322.8 kB / 415.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.3257, allocations: 39.97 kB / 416 MB, free: 11.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3258, allocations: 138.8 kB / 416.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003034/0.3262, allocations: 189.5 kB / 416.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3262, allocations: 3.938 kB / 416.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003784/0.3266, allocations: 197.4 kB / 416.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.3266, allocations: 11.94 kB / 416.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3266, allocations: 0 / 416.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.3266, allocations: 8 kB / 416.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.3268, allocations: 39.97 kB / 416.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.3268, allocations: 7.938 kB / 416.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.3269, allocations: 27.83 kB / 416.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.3269, allocations: 8.25 kB / 416.6 MB, free: 10.55 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.3271, allocations: 133.7 kB / 416.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.3272, allocations: 89.67 kB / 416.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.898e-05/0.3273, allocations: 20.7 kB / 416.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3273, allocations: 7.984 kB / 416.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3273, allocations: 0 / 416.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3273, allocations: 0 / 416.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.3276, allocations: 210 kB / 417 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3276, allocations: 0 / 417 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001818/0.3278, allocations: 39.97 kB / 417.1 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.3278, allocations: 4 kB / 417.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.3278, allocations: 0 / 417.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.3278, allocations: 3.938 kB / 417.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3279, allocations: 4 kB / 417.1 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005483/0.3284, allocations: 393.2 kB / 417.5 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.3285, allocations: 85.05 kB / 417.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.3285, allocations: 8 kB / 417.6 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.3286, allocations: 4 kB / 417.6 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.325e-05/0.3287, allocations: 11.98 kB / 417.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.3287, allocations: 8 kB / 417.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.027e-05/0.3288, allocations: 95.27 kB / 417.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3288, allocations: 0 / 417.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000324/0.3291, allocations: 36 kB / 417.7 MB, free: 9.312 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001248/0.3292, allocations: 103.2 kB / 417.8 MB, free: 9.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003357/0.3296, allocations: 120.6 kB / 417.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3296, allocations: 0 / 417.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.969e-05/0.3297, allocations: 32.03 kB / 418 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000505/0.3302, allocations: 63.45 kB / 418 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007401/0.331, allocations: 423.4 kB / 418.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.3313, allocations: 0.7123 MB / 419.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.363e-05/0.3313, allocations: 15.44 kB / 419.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3313, allocations: 0 / 419.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of Templates: time 0.003288/0.3346, allocations: 1.546 MB / 420.7 MB, free: 6.246 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches