Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000219/0.000219, allocations: 0 / 0, free: 0 / 0 " [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.0001679/0.0001679, allocations: 0 / 0, free: 0 / 0 " [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.09789/0.09789, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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: simulate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,startTime=0,stopTime=5,tolerance=1e-06,numberOfIntervals=5051,outputFormat="mat",variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") simulate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,startTime=0,stopTime=5,tolerance=1e-06,numberOfIntervals=5051,outputFormat="mat",variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.004e-05/2.178e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003174/0.003195, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.001201/0.004397, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 8.085e-05/0.004478, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 9.007e-05/0.004568, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.004688, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.004909, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.0001373/0.005047, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.005152, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.005278, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 5.868e-05/0.005336, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.005357, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 1.319e-05/0.00537, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 3.409e-05/0.005404, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 3.894e-05/0.005443, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.005597, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 1.755e-05/0.005615, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 2.074e-06/0.005617, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 7.123e-06/0.005624, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005156/0.00614, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 7.257e-05/0.006212, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 5.914e-05/0.006272, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.000168/0.006439, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.00646, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 3.355e-05/0.006493, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/0.006846, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.006859, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.006882, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.006887, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 7.517e-05/0.006962, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.007354, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.007487, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 4.791e-05/0.007535, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.007555, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.007576, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=14): time 4.799e-06/0.007581, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=14): time 0.000223/0.007804, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.007851, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.163e-05/0.007902, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.007929, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 3.593e-05/0.007965, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.007993, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 4.621e-05/0.008039, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 2.009e-05/0.008059, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 1.588e-05/0.008075, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 3.181e-05/0.008107, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 6.979e-05/0.008177, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.00818, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001443/0.008324, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.008339, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.008345, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.008357, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.097e-05/0.008448, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.008457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.784e-05/0.008514, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.008527, allocations: 0 / 0, free: 0 / 0 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 6.884e-05/0.008596, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 9.697e-05/0.008693, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.235e-05/0.008735, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.00874, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.008745, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.00875, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004037/0.009154, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.009158, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.009262, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.009268, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.009288, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.009292, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.009294, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.00944, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 2.576e-05/0.009466, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.567e-05/0.009522, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.009638, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 3.3e-05/0.009671, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.009682, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 2.474e-05/0.009707, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 2.475e-06/0.00971, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.0005178/0.01023, allocations: 0 / 0, free: 0 / 0 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 (14): * Single equations (assignments): 14 * 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.000112/0.01034, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.0001122/0.01045, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.01045, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 2.407e-05/0.01048, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007784/0.01126, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005317/0.01179, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 4.133e-05/0.01183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 3.143e-05/0.01186, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 8.732e-05/0.01195, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 1.754e-05/0.01197, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.0008862/0.01285, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 900] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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: 0.7600427540019155]