Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.0009812/0.0009812, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.001259/0.001259, allocations: 165.1 kB / 24.91 MB, free: 8.715 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.9281/0.9281, allocations: 177 MB / 205.2 MB, free: 5.059 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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 273.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.444e-05/1.549e-05, allocations: 2.312 kB / 273.4 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00258/0.002595, allocations: 2.111 MB / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006963/0.003292, allocations: 0.5374 MB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.003394, allocations: 7.938 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.601e-05/0.00349, allocations: 15.8 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.488e-05/0.003555, allocations: 31.72 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.003765, allocations: 55.8 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001347/0.003899, allocations: 131.5 kB / 276.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.004007, allocations: 46.61 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.004107, allocations: 79.8 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.378e-05/0.004171, allocations: 35.88 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.004195, allocations: 16 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.677e-05/0.004212, allocations: 12 kB / 276.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.496e-05/0.004237, allocations: 23.92 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.004272, allocations: 43.84 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.004405, allocations: 87.64 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.004406, allocations: 0 / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.004407, allocations: 0 / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.004411, allocations: 4 kB / 276.6 MB, free: 13.87 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000318/0.004729, allocations: 328.3 kB / 276.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.004758, allocations: 15.98 kB / 276.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.014e-05/0.004788, allocations: 24.92 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.004912, allocations: 145.5 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.004924, allocations: 12.38 kB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.514e-05/0.004949, allocations: 16.33 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.005163, allocations: 195.8 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.005172, allocations: 192 / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.005181, allocations: 8.375 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.005187, allocations: 7.938 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.369e-05/0.005231, allocations: 34.59 kB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003344/0.005565, allocations: 461.9 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001369/0.005702, allocations: 99.69 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.696e-05/0.005739, allocations: 46.66 kB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.005753, allocations: 0 / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.005773, allocations: 42.55 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 7.72e-07/0.005774, allocations: 0 / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001383/0.005913, allocations: 97.47 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.005967, allocations: 114.8 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.233e-05/0.006029, allocations: 134.6 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.00604, allocations: 29.7 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.00608, allocations: 112 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.006094, allocations: 19.8 kB / 278.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.797e-05/0.006122, allocations: 29.69 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.123e-05/0.006194, allocations: 330.7 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.228e-05/0.006206, allocations: 8.125 kB / 278.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.811e-05/0.006244, allocations: 71.64 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.963e-05/0.006304, allocations: 74.73 kB / 279 MB, free: 11.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.006305, allocations: 0 / 279 MB, free: 11.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.257e-05/0.006378, allocations: 93.7 kB / 279.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.006388, allocations: 4 kB / 279.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.006394, allocations: 7.984 kB / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.398e-06/0.006403, allocations: 0 / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.518e-05/0.006458, allocations: 23.98 kB / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.006463, allocations: 4 kB / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.064e-05/0.006494, allocations: 7.953 kB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.006501, allocations: 11.94 kB / 279.1 MB, free: 11.03 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 5.699e-05/0.006558, allocations: 133.9 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.248e-05/0.006631, allocations: 65.61 kB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.006656, allocations: 16.78 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.006658, allocations: 0 / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.00666, allocations: 4 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.006663, allocations: 3.984 kB / 279.4 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.006771, allocations: 89.81 kB / 279.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.006772, allocations: 0 / 279.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.456e-05/0.006867, allocations: 39.97 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.006868, allocations: 0 / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.006882, allocations: 12 kB / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.006883, allocations: 0 / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.006885, allocations: 3.938 kB / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001146/0.007, allocations: 243.5 kB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.206e-05/0.007012, allocations: 15.88 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.007025, allocations: 4 kB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.784e-05/0.007082, allocations: 12.06 kB / 279.8 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.231e-05/0.007105, allocations: 3.984 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.007109, allocations: 4 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.949e-05/0.007129, allocations: 32.09 kB / 279.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007129, allocations: 4.031 kB / 279.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001533/0.007282, allocations: 23.95 kB / 279.8 MB, free: 10.28 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 6.222e-05/0.007344, allocations: 84.36 kB / 279.9 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.013e-05/0.007424, allocations: 64.7 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.007427, allocations: 3.938 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-05/0.007443, allocations: 12.86 kB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.007682, allocations: 59.47 kB / 280.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005844/0.008267, allocations: 347.2 kB / 280.4 MB, free: 9.676 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.393e-05/0.008311, allocations: 67.34 kB / 280.5 MB, free: 9.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.452e-05/0.008335, allocations: 8.969 kB / 280.5 MB, free: 9.578 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.087e-05/0.008396, allocations: 71.36 kB / 280.5 MB, free: 9.508 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.008396, allocations: 4 kB / 280.5 MB, free: 9.504 MB / 266.7 MB Notification: Performance of Templates: time 0.002853/0.01125, allocations: 1.38 MB / 281.9 MB, free: 8.191 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.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.5519734141416848]