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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001566/0.001566, allocations: 89.05 kB / 20.69 MB, free: 1.043 MB / 14.72 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.001714/0.001714, allocations: 165.2 kB / 23.96 MB, free: 4.18 MB / 14.72 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 1.425/1.425, allocations: 177 MB / 204.1 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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=5051,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=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.495e-06/2.495e-06, allocations: 0.7812 kB / 325 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.715e-05/2.965e-05, allocations: 2.281 kB / 325 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003622/0.003651, allocations: 1.992 MB / 327 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.004924, allocations: 0.5374 MB / 327.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.005082, allocations: 10.16 kB / 327.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.005211, allocations: 16.98 kB / 327.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.005372, allocations: 27.22 kB / 327.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.005657, allocations: 56.77 kB / 327.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002271/0.005884, allocations: 127.5 kB / 327.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.006048, allocations: 49.53 kB / 327.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.006222, allocations: 73.06 kB / 327.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.006341, allocations: 43.97 kB / 327.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.006369, allocations: 9.094 kB / 327.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.456e-05/0.006394, allocations: 16.38 kB / 327.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.576e-05/0.00644, allocations: 28.25 kB / 328 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.524e-05/0.006505, allocations: 34.72 kB / 328 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.006756, allocations: 129.9 kB / 328.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.006759, allocations: 0.5156 kB / 328.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.00676, allocations: 1.156 kB / 328.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.006766, allocations: 0 / 328.1 MB, free: 14.51 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007497/0.007515, allocations: 357 kB / 328.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.00757, allocations: 14.97 kB / 328.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.684e-05/0.007657, allocations: 18.97 kB / 328.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.008019, allocations: 148.4 kB / 328.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.00804, allocations: 9.312 kB / 328.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.198e-05/0.008082, allocations: 16.92 kB / 328.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006047/0.008686, allocations: 242.5 kB / 328.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.008707, allocations: 6.203 kB / 328.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.008726, allocations: 5.344 kB / 328.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.008736, allocations: 7.875 kB / 328.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.009022, allocations: 90.78 kB / 329 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000689/0.009711, allocations: 492.9 kB / 329.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003886/0.0101, allocations: 139.7 kB / 329.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001796/0.01028, allocations: 74.81 kB / 329.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.01031, allocations: 7.344 kB / 329.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.01034, allocations: 38.52 kB / 329.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.01034, allocations: 0 / 329.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005904/0.01093, allocations: 182.9 kB / 329.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.988e-05/0.01103, allocations: 111.9 kB / 330 MB, free: 12.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.01117, allocations: 132.3 kB / 330.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.01119, allocations: 31.61 kB / 330.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.998e-05/0.01128, allocations: 113.6 kB / 330.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.01131, allocations: 25.39 kB / 330.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.315e-05/0.01137, allocations: 26.28 kB / 330.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.01152, allocations: 324.9 kB / 330.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.01165, allocations: 25.78 kB / 330.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.01181, allocations: 84.61 kB / 330.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.01208, allocations: 116.2 kB / 330.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.01208, allocations: 1.094 kB / 330.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000357/0.01244, allocations: 135 kB / 331 MB, free: 12.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.01245, allocations: 6.141 kB / 331 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.01246, allocations: 2.219 kB / 331 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.01248, allocations: 3.281 kB / 331 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.0126, allocations: 30.44 kB / 331.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.01261, allocations: 2.844 kB / 331.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.401e-05/0.01271, allocations: 20.62 kB / 331.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.01272, allocations: 5.094 kB / 331.1 MB, free: 12.12 MB / 302.1 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 0.0001501/0.01287, allocations: 129.6 kB / 331.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.01303, allocations: 87.86 kB / 331.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.993e-05/0.01309, allocations: 17.47 kB / 331.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.01309, allocations: 3.016 kB / 331.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.0131, allocations: 1.25 kB / 331.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.0131, allocations: 5.844 kB / 331.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002441/0.01335, allocations: 138.2 kB / 331.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.01335, allocations: 0 / 331.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.01353, allocations: 38.39 kB / 331.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.01353, allocations: 2.766 kB / 331.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.01355, allocations: 9.656 kB / 331.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.01355, allocations: 1.281 kB / 331.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.01355, allocations: 1.609 kB / 331.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.01413, allocations: 386.8 kB / 331.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.501e-05/0.01416, allocations: 12.42 kB / 331.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.675e-05/0.01419, allocations: 6.984 kB / 331.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.01432, allocations: 7.344 kB / 331.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.053e-05/0.01436, allocations: 8.344 kB / 331.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.01438, allocations: 7.984 kB / 331.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.736e-05/0.01445, allocations: 96.36 kB / 332 MB, free: 11.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01445, allocations: 0 / 332 MB, free: 11.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003055/0.01476, allocations: 31 kB / 332.1 MB, free: 11.39 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 0.0001249/0.01488, allocations: 100.1 kB / 332.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003253/0.01521, allocations: 99.95 kB / 332.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.01521, allocations: 0 / 332.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.01532, allocations: 30.42 kB / 332.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004977/0.01581, allocations: 52 kB / 332.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006649/0.01648, allocations: 343.2 kB / 332.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/0.01659, allocations: 98.69 kB / 332.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.965e-05/0.01663, allocations: 8.375 kB / 332.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.976e-05/0.01667, allocations: 14.5 kB / 332.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.01667, allocations: 0 / 332.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Templates: time 0.004429/0.0211, allocations: 1.202 MB / 334 MB, free: 10.25 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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: 4.196000222116709]