Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 213.2 kB / 24.48 MB, free: 3.844 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 47.92 kB / 378.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2531, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003504/0.2566, allocations: 1.973 MB / 434.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.2577, allocations: 0.5375 MB / 434.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.2578, allocations: 3.938 kB / 434.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.2579, allocations: 19.8 kB / 434.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.2581, allocations: 43.7 kB / 434.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.2583, allocations: 47.88 kB / 434.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.2585, allocations: 119.6 kB / 435.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.2587, allocations: 49.2 kB / 435.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.622e-05/0.2588, allocations: 47.86 kB / 435.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.61e-05/0.2588, allocations: 47.7 kB / 435.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.2589, allocations: 12 kB / 435.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.644e-05/0.2589, allocations: 12 kB / 435.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.601e-05/0.2589, allocations: 31.84 kB / 435.3 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.35e-05/0.259, allocations: 47.73 kB / 435.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.2592, allocations: 126.5 kB / 435.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2592, allocations: 0 / 435.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2592, allocations: 0 / 435.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.2592, allocations: 0 / 435.4 MB, free: 3.582 MB / 334.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.000625/0.2598, allocations: 361.8 kB / 435.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.2599, allocations: 12.03 kB / 435.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.364e-05/0.2599, allocations: 16.84 kB / 435.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.2602, allocations: 158.2 kB / 436 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2602, allocations: 12.38 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.2602, allocations: 16.38 kB / 436 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005191/0.2608, allocations: 246.2 kB / 436.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2608, allocations: 0 / 436.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.2608, allocations: 7.938 kB / 436.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2608, allocations: 4 kB / 436.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002594/0.2611, allocations: 87.94 kB / 436.3 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000617/0.2617, allocations: 496.3 kB / 436.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00036/0.262, allocations: 143.9 kB / 437 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.2622, allocations: 70.62 kB / 437 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.2622, allocations: 4 kB / 437 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.2623, allocations: 42.48 kB / 437.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.2623, allocations: 4 kB / 437.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005447/0.2628, allocations: 181.4 kB / 437.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.986e-05/0.2629, allocations: 114.7 kB / 437.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.263, allocations: 137.7 kB / 437.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.263, allocations: 25.7 kB / 437.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.646e-05/0.2631, allocations: 115.9 kB / 437.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.2631, allocations: 27.84 kB / 437.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-05/0.2632, allocations: 33.84 kB / 437.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2633, allocations: 322.8 kB / 438 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.2635, allocations: 35.97 kB / 438 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.2637, allocations: 141 kB / 438.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/0.264, allocations: 185.7 kB / 438.4 MB, free: 324 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.264, allocations: 0 / 438.4 MB, free: 324 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000408/0.2644, allocations: 205.1 kB / 438.6 MB, free: 112 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.2644, allocations: 4.469 kB / 438.6 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.2644, allocations: 4 kB / 438.6 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.2644, allocations: 12 kB / 438.6 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.2646, allocations: 43.92 kB / 438.6 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.2646, allocations: 11.92 kB / 438.6 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.2647, allocations: 23.89 kB / 438.7 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.2647, allocations: 8 kB / 438.7 MB, free: 4 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001396/0.2649, allocations: 129.7 kB / 438.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.265, allocations: 89.56 kB / 438.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.137e-05/0.2651, allocations: 20.66 kB / 438.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.2651, allocations: 8 kB / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2651, allocations: 0 / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2651, allocations: 480 / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002353/0.2653, allocations: 133.2 kB / 439 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2653, allocations: 0 / 439 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.2655, allocations: 35.97 kB / 439.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.2655, allocations: 11.88 kB / 439.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.2655, allocations: 7.938 kB / 439.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2655, allocations: 0 / 439.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.2655, allocations: 8 kB / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005786/0.2661, allocations: 383.4 kB / 439.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.628e-05/0.2661, allocations: 19.81 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.2662, allocations: 0 / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.2663, allocations: 15.98 kB / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.456e-05/0.2663, allocations: 0 / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.2664, allocations: 7.984 kB / 439.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.739e-05/0.2664, allocations: 99.27 kB / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2664, allocations: 0 / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000334/0.2668, allocations: 28.06 kB / 439.6 MB, free: 14.96 MB / 350.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.0001018/0.2669, allocations: 107.2 kB / 439.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003392/0.2672, allocations: 116.6 kB / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2672, allocations: 0 / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.2673, allocations: 32.03 kB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.2678, allocations: 54.52 kB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007802/0.2686, allocations: 431.1 kB / 440.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001115/0.2687, allocations: 105.5 kB / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.327e-05/0.2687, allocations: 15.44 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2687, allocations: 0 / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of Templates: time 0.003446/0.2722, allocations: 1.582 MB / 442.1 MB, free: 12.48 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 6.923805806320161]