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.001527/0.001527, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001884/0.001884, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.9739/0.9739, allocations: 177 MB / 204.8 MB, free: 5.602 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: 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 1.623e-06/1.623e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.742e-05/2.905e-05, allocations: 2.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.006432/0.006461, allocations: 2.073 MB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.007497, allocations: 0.5491 MB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.007625, allocations: 3.938 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.007762, allocations: 19.8 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000168/0.00793, allocations: 23.78 kB / 275.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.008164, allocations: 59.8 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001663/0.00833, allocations: 127.4 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.008474, allocations: 45.53 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.008587, allocations: 79.8 kB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.493e-05/0.008662, allocations: 39.89 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.008691, allocations: 12 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.566e-05/0.008706, allocations: 12 kB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.983e-05/0.008736, allocations: 23.91 kB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.168e-05/0.008788, allocations: 43.84 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.008978, allocations: 87.64 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.008983, allocations: 0 / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.008985, allocations: 0 / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.008991, allocations: 3.938 kB / 276.1 MB, free: 14.27 MB / 266.7 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.0005289/0.00952, allocations: 452.1 kB / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.009565, allocations: 11.98 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.144e-05/0.009626, allocations: 28.84 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.00982, allocations: 152.4 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.009831, allocations: 8.375 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.009859, allocations: 16.36 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.01022, allocations: 244.8 kB / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.01023, allocations: 192 / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.01024, allocations: 4.375 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-06/0.01025, allocations: 7.938 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.164e-05/0.01033, allocations: 43.89 kB / 277 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005261/0.01086, allocations: 0.6329 MB / 277.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/0.0111, allocations: 141.3 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.066e-05/0.01116, allocations: 55.14 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.01118, allocations: 8 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.0112, allocations: 41.39 kB / 277.9 MB, free: 12.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.01121, allocations: 0 / 277.9 MB, free: 12.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002471/0.01145, allocations: 125.8 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.01151, allocations: 114.8 kB / 278.1 MB, free: 11.97 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.046e-05/0.0116, allocations: 192.5 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.01161, allocations: 29.7 kB / 278.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.047e-05/0.01167, allocations: 154.8 kB / 278.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.01169, allocations: 23.8 kB / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.915e-05/0.01173, allocations: 35.48 kB / 278.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.01186, allocations: 0.4922 MB / 279 MB, free: 11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.851e-05/0.01188, allocations: 11.98 kB / 279.1 MB, free: 10.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.949e-05/0.01193, allocations: 85.42 kB / 279.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.302e-05/0.01202, allocations: 97.42 kB / 279.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01202, allocations: 0 / 279.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001372/0.01216, allocations: 113.4 kB / 279.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.01217, allocations: 4 kB / 279.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.01218, allocations: 4 kB / 279.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.01219, allocations: 0 / 279.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.651e-05/0.01228, allocations: 27.98 kB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.01229, allocations: 4 kB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.198e-05/0.01233, allocations: 16.08 kB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-06/0.01234, allocations: 11.94 kB / 279.4 MB, free: 10.56 MB / 266.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.731e-05/0.01243, allocations: 160.6 kB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.01254, allocations: 93.47 kB / 279.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.293e-05/0.0126, allocations: 21 kB / 279.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.01261, allocations: 3.984 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.01261, allocations: 0 / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.01261, allocations: 4 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.01278, allocations: 144.5 kB / 279.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.01279, allocations: 0 / 279.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.01289, allocations: 35.98 kB / 279.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.0129, allocations: 7.938 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.01291, allocations: 4 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01291, allocations: 0 / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.01292, allocations: 7.984 kB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.0132, allocations: 422.6 kB / 280.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.773e-05/0.01322, allocations: 11.89 kB / 280.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.01324, allocations: 0 / 280.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.588e-05/0.0133, allocations: 8 kB / 280.3 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.01334, allocations: 11.92 kB / 280.3 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.01335, allocations: 4.031 kB / 280.3 MB, free: 9.566 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.919e-05/0.0134, allocations: 142.1 kB / 280.5 MB, free: 9.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0134, allocations: 0 / 280.5 MB, free: 9.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002031/0.0136, allocations: 27.94 kB / 280.5 MB, free: 9.402 MB / 266.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.0001004/0.0137, allocations: 99.25 kB / 280.6 MB, free: 9.297 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001337/0.01384, allocations: 63.53 kB / 280.7 MB, free: 9.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.01384, allocations: 3.938 kB / 280.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.578e-05/0.01386, allocations: 24.11 kB / 280.7 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.01423, allocations: 51.11 kB / 280.7 MB, free: 9.148 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008005/0.01503, allocations: 350.7 kB / 281.1 MB, free: 8.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.397e-05/0.0151, allocations: 71.33 kB / 281.1 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.971e-05/0.01514, allocations: 12.97 kB / 281.2 MB, free: 8.668 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.234e-05/0.01518, allocations: 16.5 kB / 281.2 MB, free: 8.648 MB / 266.7 MB Notification: Performance of SimCode: time 1.493e-06/0.01519, allocations: 0 / 281.2 MB, free: 8.648 MB / 266.7 MB Notification: Performance of Templates: time 0.00369/0.01888, allocations: 1.255 MB / 282.4 MB, free: 7.418 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7670850288122892]