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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007808/0.0007808, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008023/0.0008023, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8663/0.8663, allocations: 177 MB / 204.1 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.277e-05/2.449e-05, allocations: 3.125 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00263/0.002654, allocations: 2.023 MB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008364/0.003491, allocations: 0.5686 MB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.003605, allocations: 11.94 kB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.003725, allocations: 15.8 kB / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001818/0.003907, allocations: 31.72 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002899/0.004196, allocations: 74.59 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001833/0.00438, allocations: 135.4 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.004535, allocations: 38.11 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.004655, allocations: 79.8 kB / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.77e-05/0.004733, allocations: 39.81 kB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.297e-05/0.004766, allocations: 12 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.856e-05/0.004785, allocations: 12 kB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.731e-05/0.004852, allocations: 39.89 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/0.004903, allocations: 39.86 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.005115, allocations: 139.5 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.005119, allocations: 0 / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.00512, allocations: 0 / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.005129, allocations: 3.984 kB / 327.7 MB, free: 12.66 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.0005219/0.005651, allocations: 377.6 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.005691, allocations: 15.98 kB / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.889e-05/0.00573, allocations: 50.67 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.005764, allocations: 24.8 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.005994, allocations: 157.3 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.006008, allocations: 16.31 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.804e-05/0.006036, allocations: 12.38 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003766/0.006413, allocations: 255.1 kB / 328.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.006424, allocations: 192 / 328.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.006437, allocations: 8.125 kB / 328.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.006443, allocations: 4 kB / 328.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.006611, allocations: 91.86 kB / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00049/0.007101, allocations: 0.5117 MB / 329.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002504/0.007352, allocations: 143.7 kB / 329.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.08e-05/0.007443, allocations: 74.77 kB / 329.5 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.007471, allocations: 7.984 kB / 329.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.007492, allocations: 34.56 kB / 329.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 7.935e-06/0.0075, allocations: 0 / 329.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003313/0.007831, allocations: 185.5 kB / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.007894, allocations: 114.8 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.008006, allocations: 166.4 kB / 330 MB, free: 10.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.008018, allocations: 25.7 kB / 330 MB, free: 10.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.151e-05/0.008069, allocations: 112.6 kB / 330.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.008088, allocations: 27.78 kB / 330.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.825e-05/0.008126, allocations: 29.7 kB / 330.1 MB, free: 10 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.721e-05/0.008204, allocations: 318.8 kB / 330.5 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.874e-05/0.008262, allocations: 27.97 kB / 330.5 MB, free: 9.652 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.488e-05/0.008337, allocations: 90.72 kB / 330.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.008481, allocations: 122.7 kB / 330.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.008483, allocations: 0 / 330.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001739/0.008657, allocations: 141.4 kB / 330.8 MB, free: 9.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.008672, allocations: 4 kB / 330.8 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.008679, allocations: 4 kB / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.008692, allocations: 0 / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.104e-05/0.008763, allocations: 31.92 kB / 330.9 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.008771, allocations: 7.922 kB / 330.9 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.003e-05/0.008811, allocations: 11.95 kB / 330.9 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.008818, allocations: 8.219 kB / 330.9 MB, free: 9.184 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 8.239e-05/0.0089, allocations: 133.8 kB / 331 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.858e-05/0.008998, allocations: 89.59 kB / 331.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.29e-05/0.009061, allocations: 16.78 kB / 331.1 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.009066, allocations: 7.984 kB / 331.1 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.009071, allocations: 3.938 kB / 331.1 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.009074, allocations: 0 / 331.1 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004874/0.009562, allocations: 173.1 kB / 331.3 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.009563, allocations: 4 kB / 331.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.009666, allocations: 39.91 kB / 331.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.009669, allocations: 4 kB / 331.4 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.009679, allocations: 4 kB / 331.4 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.009681, allocations: 7.938 kB / 331.4 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.009683, allocations: 3.938 kB / 331.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003268/0.01001, allocations: 379.4 kB / 331.7 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.673e-05/0.01006, allocations: 27.95 kB / 331.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.01007, allocations: 4 kB / 331.8 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.981e-05/0.01014, allocations: 12.05 kB / 331.8 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.844e-05/0.01018, allocations: 11.94 kB / 331.8 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.01019, allocations: 4 kB / 331.8 MB, free: 8.203 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.859e-05/0.01024, allocations: 120.1 kB / 331.9 MB, free: 8.086 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01024, allocations: 0 / 331.9 MB, free: 8.086 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001961/0.01044, allocations: 27.89 kB / 331.9 MB, free: 8.059 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 0.0005069/0.01095, allocations: 0.9242 MB / 332.9 MB, free: 7.105 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001747/0.01112, allocations: 95.8 kB / 333 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.01112, allocations: 0 / 333 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.488e-05/0.01118, allocations: 27.97 kB / 333 MB, free: 6.984 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.01156, allocations: 76.59 kB / 333.1 MB, free: 6.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.013, allocations: 1.854 MB / 334.9 MB, free: 4.918 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.678e-05/0.01309, allocations: 118.2 kB / 335 MB, free: 4.781 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.691e-05/0.01312, allocations: 8.641 kB / 335 MB, free: 4.773 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.302e-05/0.01319, allocations: 32.5 kB / 335.1 MB, free: 4.742 MB / 298.7 MB Notification: Performance of SimCode: time 1.092e-06/0.01319, allocations: 3.938 kB / 335.1 MB, free: 4.738 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.03079, allocations: 3.617 MB / 338.7 MB, free: 1.293 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.754/6.785, allocations: 7.062 kB / 338.7 MB, free: 1.289 MB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.425040814094245]