Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 200.8 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009366/0.0009366, allocations: 103.2 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003388/0.0003391, allocations: 8 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2778, allocations: 51.41 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002078/0.2799, allocations: 1.703 MB / 413.7 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009236/0.2809, allocations: 0.7126 MB / 414.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.281, allocations: 4 kB / 414.5 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.2811, allocations: 19.86 kB / 414.5 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.2813, allocations: 19.84 kB / 414.5 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002437/0.2815, allocations: 67.81 kB / 414.6 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001364/0.2817, allocations: 124.4 kB / 414.7 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.2818, allocations: 54.06 kB / 414.7 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.686e-05/0.2819, allocations: 47.73 kB / 414.8 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.576e-05/0.282, allocations: 51.7 kB / 414.8 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.282, allocations: 4 kB / 414.8 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.941e-05/0.282, allocations: 4 kB / 414.8 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.883e-05/0.2821, allocations: 23.86 kB / 414.9 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.909e-05/0.2821, allocations: 89.3 kB / 415 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.2823, allocations: 128 kB / 415.1 MB, free: 22.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2823, allocations: 0 / 415.1 MB, free: 22.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2823, allocations: 0 / 415.1 MB, free: 22.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.2823, allocations: 0 / 415.1 MB, free: 22.82 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.0005363/0.2829, allocations: 441 kB / 415.5 MB, free: 22.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2829, allocations: 8.031 kB / 415.5 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.691e-05/0.2829, allocations: 16.75 kB / 415.5 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.2831, allocations: 218.7 kB / 415.8 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.2832, allocations: 12.38 kB / 415.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.751e-05/0.2832, allocations: 20.28 kB / 415.8 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004591/0.2837, allocations: 258.8 kB / 416 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.2837, allocations: 0 / 416 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.2837, allocations: 8 kB / 416 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2837, allocations: 0 / 416 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002312/0.284, allocations: 99.88 kB / 416.1 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.2845, allocations: 0.5999 MB / 416.7 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.2848, allocations: 147.7 kB / 416.9 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.285, allocations: 90.61 kB / 417 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.285, allocations: 12.11 kB / 417 MB, free: 20.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/0.285, allocations: 34.56 kB / 417 MB, free: 20.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.285, allocations: 0 / 417 MB, free: 20.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004495/0.2855, allocations: 205.2 kB / 417.2 MB, free: 20.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.2855, allocations: 111.2 kB / 417.3 MB, free: 20.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.707e-05/0.2856, allocations: 155.3 kB / 417.5 MB, free: 20.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.2856, allocations: 33.77 kB / 417.5 MB, free: 20.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.022e-05/0.2857, allocations: 120.4 kB / 417.6 MB, free: 20 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.2857, allocations: 27.64 kB / 417.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.2857, allocations: 4 kB / 417.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.491e-05/0.2858, allocations: 322.8 kB / 418 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.2859, allocations: 39.97 kB / 418 MB, free: 19.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.286, allocations: 140.3 kB / 418.2 MB, free: 19.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.2863, allocations: 201.5 kB / 418.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.2863, allocations: 0 / 418.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003003/0.2866, allocations: 213 kB / 418.6 MB, free: 18.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.2866, allocations: 8 kB / 418.6 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2866, allocations: 4 kB / 418.6 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2867, allocations: 4.469 kB / 418.6 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.2868, allocations: 51.91 kB / 418.6 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.2868, allocations: 4 kB / 418.6 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.562e-05/0.2869, allocations: 27.83 kB / 418.7 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.2869, allocations: 8 kB / 418.7 MB, free: 18.86 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.982e-05/0.287, allocations: 133.8 kB / 418.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.2871, allocations: 93.38 kB / 418.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.574e-05/0.2872, allocations: 28.7 kB / 418.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.2872, allocations: 0 / 418.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2873, allocations: 0 / 418.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.2873, allocations: 4 kB / 418.9 MB, free: 18.58 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002093/0.2875, allocations: 213.5 kB / 419.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2875, allocations: 3.984 kB / 419.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.2877, allocations: 31.98 kB / 419.2 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2877, allocations: 4 kB / 419.2 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.2877, allocations: 4 kB / 419.2 MB, free: 18.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2877, allocations: 11.94 kB / 419.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2877, allocations: 0 / 419.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004203/0.2881, allocations: 403.2 kB / 419.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.435e-05/0.2882, allocations: 104.9 kB / 419.7 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.417e-05/0.2882, allocations: 7.984 kB / 419.7 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.2884, allocations: 12 kB / 419.7 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.2884, allocations: 8.078 kB / 419.7 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.2884, allocations: 7.938 kB / 419.7 MB, free: 17.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.892e-05/0.2885, allocations: 122.4 kB / 419.8 MB, free: 17.58 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.313e-06/0.2885, allocations: 0 / 419.8 MB, free: 17.58 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002736/0.2888, allocations: 31.94 kB / 419.9 MB, free: 17.55 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.937e-05/0.2889, allocations: 115.4 kB / 420 MB, free: 17.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.2892, allocations: 131.9 kB / 420.1 MB, free: 17.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2892, allocations: 0 / 420.1 MB, free: 17.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.346e-05/0.2893, allocations: 32.8 kB / 420.1 MB, free: 17.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.2897, allocations: 67.94 kB / 420.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005937/0.2903, allocations: 0.5133 MB / 420.7 MB, free: 16.65 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000144/0.2905, allocations: 0.7204 MB / 421.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.841e-05/0.2905, allocations: 13.42 kB / 421.4 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.2905, allocations: 11.44 kB / 421.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2906, allocations: 0 / 421.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of Templates: time 0.003303/0.2939, allocations: 1.194 MB / 422.7 MB, free: 14.7 MB / 298.7 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