Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009047/0.0009048, allocations: 93.44 kB / 17.31 MB, free: 6.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009769/0.0009769, allocations: 178.1 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002323/0.0002323, allocations: 11.92 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07289/0.07314, allocations: 50.42 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001974/0.07514, allocations: 1.718 MB / 354.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008445/0.076, allocations: 0.5649 MB / 354.8 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.407e-05/0.07611, allocations: 3.938 kB / 354.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.444e-05/0.0762, allocations: 15.86 kB / 354.8 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001454/0.07635, allocations: 19.84 kB / 354.8 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.07662, allocations: 63.12 kB / 354.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.07678, allocations: 123.6 kB / 355 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.07691, allocations: 53.39 kB / 355 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.164e-05/0.07699, allocations: 47.72 kB / 355.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.388e-05/0.07707, allocations: 47.72 kB / 355.1 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.0771, allocations: 4 kB / 355.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.874e-05/0.07712, allocations: 4 kB / 355.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.408e-05/0.07718, allocations: 27.91 kB / 355.2 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.343e-05/0.07726, allocations: 89.3 kB / 355.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.07738, allocations: 96.02 kB / 355.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.07739, allocations: 0 / 355.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.0774, allocations: 0 / 355.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.07741, allocations: 3.938 kB / 355.4 MB, free: 0.8125 MB / 286.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.000516/0.07793, allocations: 431 kB / 355.8 MB, free: 352 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.07797, allocations: 12.03 kB / 355.8 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.213e-05/0.07802, allocations: 20.66 kB / 355.8 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.07821, allocations: 216 kB / 356 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.07823, allocations: 16.36 kB / 356 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.07827, allocations: 12.38 kB / 356 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.07877, allocations: 262.8 kB / 356.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.07879, allocations: 0 / 356.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.07881, allocations: 4 kB / 356.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.07882, allocations: 4 kB / 356.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.0791, allocations: 99.88 kB / 356.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005629/0.07967, allocations: 0.5959 MB / 357 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.08002, allocations: 159.8 kB / 357.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.0802, allocations: 78.64 kB / 357.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.08023, allocations: 11.92 kB / 357.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.08026, allocations: 30.56 kB / 357.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.08027, allocations: 4 kB / 357.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005337/0.08081, allocations: 205.3 kB / 357.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.08088, allocations: 114.9 kB / 357.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.08101, allocations: 150.2 kB / 357.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.08103, allocations: 29.7 kB / 357.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.586e-05/0.08109, allocations: 116.4 kB / 357.9 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.807e-05/0.08113, allocations: 35.62 kB / 357.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/0.08116, allocations: 25.64 kB / 357.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.827e-05/0.08126, allocations: 322.8 kB / 358.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.08139, allocations: 43.97 kB / 358.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.08157, allocations: 141.7 kB / 358.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.08188, allocations: 201.5 kB / 358.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.08189, allocations: 4 kB / 358.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003894/0.08229, allocations: 209.5 kB / 358.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.08231, allocations: 8 kB / 358.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.08232, allocations: 0 / 358.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.08235, allocations: 8 kB / 358.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.08251, allocations: 47.91 kB / 358.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.08252, allocations: 4 kB / 358.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.08264, allocations: 27.83 kB / 358.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.08266, allocations: 8 kB / 358.9 MB, free: 12.82 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.764e-05/0.08276, allocations: 146.2 kB / 359.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.08292, allocations: 93.38 kB / 359.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.102e-05/0.083, allocations: 20.7 kB / 359.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.08301, allocations: 4 kB / 359.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.08302, allocations: 0 / 359.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.08303, allocations: 4 kB / 359.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.08329, allocations: 213.5 kB / 359.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.0833, allocations: 0 / 359.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.08349, allocations: 35.98 kB / 359.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.0835, allocations: 4 kB / 359.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.08352, allocations: 12.45 kB / 359.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.08353, allocations: 7.984 kB / 359.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.08354, allocations: 3.938 kB / 359.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005291/0.08407, allocations: 399.2 kB / 359.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.665e-05/0.08415, allocations: 104.9 kB / 360 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.08418, allocations: 4 kB / 360 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.08433, allocations: 16.06 kB / 360 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.08437, allocations: 3.984 kB / 360 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.08438, allocations: 4 kB / 360 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.068e-05/0.08447, allocations: 124.1 kB / 360.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08448, allocations: 0 / 360.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000338/0.08482, allocations: 27.94 kB / 360.1 MB, free: 11.51 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.713e-05/0.0849, allocations: 119.1 kB / 360.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.08524, allocations: 128.9 kB / 360.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.08525, allocations: 0 / 360.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.08536, allocations: 32.14 kB / 360.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.08586, allocations: 70.7 kB / 360.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007035/0.08657, allocations: 0.5462 MB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.08682, allocations: 0.7204 MB / 361.8 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.781e-05/0.08687, allocations: 15.44 kB / 361.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.08687, allocations: 0 / 361.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of Templates: time 0.00295/0.08983, allocations: 1.592 MB / 363.4 MB, free: 8.23 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches